how to define 3D coordinates in matlab?

21 Ansichten (letzte 30 Tage)
Sat m
Sat m am 15 Mär. 2013
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

Akzeptierte Antwort

Youssef  Khmou
Youssef Khmou am 15 Mär. 2013
Bearbeitet: Youssef Khmou am 15 Mär. 2013
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),'*')

Weitere Antworten (0)

Kategorien

Mehr zu Get Started with MATLAB finden Sie in Help Center und File Exchange

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by