Home > OS >  how do I enter the coordinates of a point in matlab?
how do I enter the coordinates of a point in matlab?

Time:11-28

I wan to give x,y,z coordinates to a point, for example to P point. The P point coordinates are: P=(0,1,1) How can I give the values in Matlab?

I tried P=(0,1,1) and Px=0 Py=0 Pz=0 ,but I need it to an equation.

CodePudding user response:

one variable can store n-dimensional coordinates

P=[0 1 1];

you can also do this:

px=0;
py=1;
pz=1;
  • Related