plot 3 d square
1 次查看(过去 30 天)
显示 更早的评论
hi
this script must plot a square, but i got the attached plot, how to connect all lines?
thanks
vhat1=[x,repmat(2,length(y),1),repmat(2,length(z),1)];
vhat2=[(x),repmat(-2,length(y),1),repmat(2,length(z),1)];
vhat3=[repmat(2,length(x),1),y,repmat(2,length(z),1)];
vhat4=[repmat(-2,length(x),1),y,repmat(2,length(z),1)];
vhatt=[vhat1;vhat2;vhat3;vhat4];
4 个评论
回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!