Plotting a rectangle in 3D space
63 ビュー (過去 30 日間)
古いコメントを表示
Karthik
2013 年 12 月 19 日
コメント済み: Marcelo Soto Thompson
2015 年 11 月 27 日
Hi, Suppose I have four points as p1 = [x1,y1,z];p2 = [x2,y2,z];p3 = [x3,y3,z];p4 = [x4,y4,z];
If these four points form a perfect rectangle,what line of code should I write to plot this rectangle in 3D space?
Thanks.
Karthik
0 件のコメント
採用された回答
Walter Roberson
2013 年 12 月 19 日
plot3d( [x1 x2 x3 x4 x1], [y1 y2 y3 y4 y1], [z z z z z] )
If, that is, you want it as a line. If you want it as a surface, use patch() instead of plot3d()
3 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Annotations についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!