读书人

matlab瓜分三棱柱(简单的三维作图)

发布时间: 2012-10-10 13:58:11 作者: rapoo

matlab分割三棱柱(简单的三维作图)

matlab瓜分三棱柱(简单的三维作图)

v=[0 0 0;0 50 0;50 0 0;0 0 50;50 0 50;0 50 50;];     f= [1 2 3 1;1 2 6 4;2 3 5 6;1 3 5 4;4 5 6 4];patch('Faces',f,'Vertices',v,'FaceColor','r');view(135,30)alpha(0.5)hold on;x1=-100:100:100;y1=-100:100:100;temps1=[10 10 10; 20 20 20; 30 30 30];x2=-100:100:100;y2=-100:100:100;temps2=[20 20 20 ;20 20 20 ;20 20 20];mesh(x1,y1,temps1);hold on;mesh(x2,y2,temps2);


读书人网 >编程

热点推荐