MATLAB: How to define 3D coordinates in matlab 3d coordinatesdefiningMATLAB 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 Best Answer 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),'*') Related SolutionsMATLAB: How to find a tangent point from a circle Refer this link for what you want: https://in.mathworks.com/matlabcentral/answers/258780-how-to-plot-tangent-line-from-specified-point-to-a-circle MATLAB: How to convert 1D matrix to 3D matrix with specific order. a=0.01:0.01:0.60%you want a nxmxp matrix with:n=3m=4p=5out=permute(reshape(a,p,n,m),[2,3,1])You can apply this to your case 2x2x3 matricea=0.01:0.01:0.12n=2m=2p=3out=permute(reshape(a,p,n,m),[2,3,1]) Related QuestionHow to properly sum 3D matrixesHow to call vector in matrix with conditionHow to plot a new vector that have a relative length of another
Best Answer