Matlab怎么画出经过三条曲线的曲面?相关函数是什么?
如何利用三条曲线,画出过这三条曲线的曲面?当z=20时候p1=[ 0 0.0253 0.0505 0.0758 0.1010 0.2525 0.2778 0.3030 0.3283 0.3535 0.3788 0.4040 0.4293 0.4545 0.4798 0.5051 0.5303 0.7071 0.7323 0.7576 0.7828 0.8081 0.8333 1.0354 1.0606 1.0859 1.1111 1.1364 1.1616 1.1869 1.2121 1.2374 1.2626 1.2879 1.3131 1.3384 1.3636 1.5152 1.5404 1.5657 1.5909 1.6162 1.6414 1.6667 1.6919 1.7172 1.7424 ]
t1=[ 0.1087 1.8116 2.8623 3.0435 3.5870 5.2899 5.3986 5.4710 5.6522 5.7971 6.1232 6.0507 6.0145 6.1232 6.1957 6.3406 6.3406 6.7754 6.7754 6.8841 6.9928 7.0290 7.1377 7.0652 7.0652 7.1377 7.1014 7.0652 7.0652 7.1377 7.1014 7.1377 7.1014 7.1377 7.1014 7.1377 7.1014 7.1014 7.1377 7.1014 7.2101 7.1739 7.2464 7.2101 7.2101 7.1739 7.2464 ];
当z=60时候
p1=[ 0 0.0253 0.0505 0.0758 0.1010 0.2525 0.2778 0.3030 0.3283 0.3535 0.3788 0.4040 0.4293 0.4545 0.4798 0.5051 0.5303 0.7071 0.7323 0.7576 0.7828 0.8081 0.8333 1.0354 1.0606 1.0859 1.1111 1.1364 1.1616 1.1869 1.2121 1.2374 1.2626 1.2879 1.3131 1.3384 1.3636 1.5152 1.5404 1.5657 1.5909 1.6162 1.6414 1.6667 1.6919 1.7172 1.7424 ]
t1= [ 0.2536 0.6522 0.9058 1.0507 1.3043 4.0580 4.2029 4.4928 4.6377 5.5072 5.7609 5.8696 6.0507 5.9420 6.0507 6.0145 6.0870 5.9420 5.9783 6.0507 5.9420 5.9783 6.0145 6.1232 6.0870 6.2319 6.2681 6.1594 6.1232 6.0870 6.0507 6.2681 6.3043 6.3406 6.2681 6.2319 6.1957 6.2681 6.2319 6.1957 6.3043 6.3406 6.2681 6.3043 6.3406 6.2681 6.2319 ];
z=130时候
p1=[ 0 0.0253 0.0505 0.0758 0.1010 0.2525 0.2778 0.3030 0.3283 0.3535 0.3788 0.4040 0.4293 0.4545 0.4798 0.5051 0.5303 0.7071 0.7323 0.7576 0.7828 0.8081 0.8333 1.0354 1.0606 1.0859 1.1111 1.1364 1.1616 1.1869 1.2121 1.2374 1.2626 1.2879 1.3131 1.3384 1.3636 1.5152 1.5404 1.5657 1.5909 1.6162 1.6414 1.6667 1.6919 1.7172 1.7424 ];
t1=[ 0.2536 0.7609 1.7754 2.1014 2.3551 6.4855 6.6304 6.8478 6.8841 6.9565 6.9928 6.9928 6.9565 7.1014 7.0652 7.0290 7.1014 7.1739 7.1377 7.2101 7.2464 7.2826 7.3188 7.4275 7.3551 7.3913 7.3551 7.3551 7.4275 7.5000 7.4275 7.4638 7.5000 7.5362 7.5725 7.6087 7.644 7.7536 7.7174 7.6812 7.7536 7.7174 7.6812 7.7174 7.6087 7.6812 7.7174 ];
如何利用三条曲线,画出过这三条曲线的曲面?
相关语句和函数是什么 ?
请高手指点!谢谢!
[ 本帖最后由 ChaChing 于 2010-8-1 20:41 编辑 ] 要画p1-t1-z吗?
个人水平专业有限, 建议楼主说清楚些:loveliness: 对的,是要画p1-t1-z的曲面。
回复 板凳 jaj2008 的帖子
还是不太明白, 看看代码, 选个LZ要的p1=[0, 0.0253, 0.0505, 0.0758, 0.1010, 0.2525, 0.2778, 0.3030, 0.3283, 0.3535, ...
0.3788, 0.4040, 0.4293, 0.4545, 0.4798, 0.5051, 0.5303, 0.7071, 0.7323, 0.7576, ...
0.7828, 0.8081, 0.8333, 1.0354, 1.0606, 1.0859, 1.1111, 1.1364, 1.1616, 1.1869, ...
1.2121, 1.2374, 1.2626, 1.2879, 1.3131, 1.3384, 1.3636, 1.5152, 1.5404, 1.5657, ...
1.5909, 1.6162, 1.6414, 1.6667, 1.6919, 1.7172, 1.7424]; pp=p1;
t1=[0.1087, 1.8116, 2.8623, 3.0435, 3.5870, 5.2899, 5.3986, 5.4710, 5.6522, 5.7971, ...
6.1232, 6.0507, 6.0145, 6.1232, 6.1957, 6.3406, 6.3406, 6.7754, 6.7754, 6.8841, ...
6.9928, 7.0290, 7.1377, 7.0652, 7.0652, 7.1377, 7.1014, 7.0652, 7.0652, 7.1377, ...
7.1014, 7.1377, 7.1014, 7.1377, 7.1014, 7.1377, 7.1014, 7.1014, 7.1377, 7.1014, ...
7.2101, 7.1739, 7.2464, 7.2101, 7.2101, 7.1739, 7.2464]; tt=t1;
t1=[0.2536, 0.6522, 0.9058, 1.0507, 1.3043, 4.0580, 4.2029, 4.4928, 4.6377, 5.5072, ...
5.7609, 5.8696, 6.0507, 5.9420, 6.0507, 6.0145, 6.0870, 5.9420, 5.9783, 6.0507, ...
5.9420, 5.9783, 6.0145, 6.1232, 6.0870, 6.2319, 6.2681, 6.1594, 6.1232, 6.0870, ...
6.0507, 6.2681, 6.3043, 6.3406, 6.2681, 6.2319, 6.1957, 6.2681, 6.2319, 6.1957, ...
6.3043, 6.3406, 6.2681, 6.3043, 6.3406, 6.2681, 6.2319]; tt=;
t1=[0.2536, 0.7609, 1.7754, 2.1014, 2.3551, 6.4855, 6.6304, 6.8478, 6.8841, 6.9565, ...
6.9928, 6.9928, 6.9565, 7.1014, 7.0652, 7.0290, 7.1014, 7.1739, 7.1377, 7.2101, ...
7.2464, 7.2826, 7.3188, 7.4275, 7.3551, 7.3913, 7.3551, 7.3551, 7.4275, 7.5000, ...
7.4275, 7.4638, 7.5000, 7.5362, 7.5725, 7.6087, 7.6440, 7.7536, 7.7174, 7.6812, ...
7.7536, 7.7174, 7.6812, 7.7174, 7.6087, 7.6812, 7.7174]; tt=;
z=;
waterfall(pp,z,tt); figure; mesh(pp,z,tt); figure; surf(pp,z,tt)
还有LZ的帖有点乱, 三个p1是一样的, 也没说明
比较下吧
[ 本帖最后由 ChaChing 于 2010-8-1 11:50 编辑 ] 谢谢了,太有用了,版主给楼主加分了。 原帖由 jaj2008 于 2010-8-1 14:59 发表 http://www.chinavib.com/forum/images/common/back.gif
...版主给楼主加分了...
我不就是版主, LZ是楼主!? :lol
[ 本帖最后由 ChaChing 于 2010-8-1 15:37 编辑 ]
页:
[1]