フィルターのクリア

how to define 3D coordinates in matlab?

9 ビュー (過去 30 日間)
Sat m
Sat m 2013 年 3 月 15 日
i wish to define 2 3D coordinates say (X1, Y1, Z1) and (X2, Y2, Z2). how to define these points?
if i write
(X1, Y1, Z1)= (5, 6, 2);
then it shows parse error . please let me know
  1 件のコメント
Youssef  Khmou
Youssef Khmou 2013 年 3 月 15 日
X1=5;Y1=6;Z1=2;

サインインしてコメントする。

採用された回答

Youssef  Khmou
Youssef Khmou 2013 年 3 月 15 日
編集済み: Youssef Khmou 2013 年 3 月 15 日
hi,
one variable can store n dimensional coordinates :
P=[5 6 2];
or you can split them into n parts :
p1=5;
p2=6;
p3=2;
plot3(p1,p2,p3,'*');
plot3(P(1),P(2),P(3),'*')
  1 件のコメント
Sat m
Sat m 2013 年 3 月 15 日
thank you

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeVisual Exploration についてさらに検索

製品

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by