Prev: using case statement on string inputs when number of case choicesis unknown
Next: MINLP in MATLAB
From: Conor Walsh on 18 Mar 2010 15:21 hi All I am wondering if there is an efficient way to plot a coordinate axes (x,y, z unit vectors from common point) at a point in a 3d plot. I am looking to plot the position and orientation of multiple coordinate systems on a single plot. Thank you for your help Conor
From: Walter Roberson on 18 Mar 2010 15:40 Conor Walsh wrote: > I am wondering if there is an efficient way to plot a coordinate axes > (x,y, z unit vectors from common point) at a point in a 3d plot. The vectors themselves: plot3(x0+[0, 1, nan, 0, 0, nan, 0, 0], y0+[0, 0, nan, 0, 1, nan, 0, 0], z0+[0, 0, nan, 0, 0, nan, 0, 1] ) The annotations: text([x0+1, x0, x0], [y0, y0+1, y0], [z0, z0, z0+1], ['+X';'+Y';'+Z']); > I am looking to plot the position and orientation of multiple > coordinate systems on a single plot. The above could be adapted, by using bsxfun, to do all the lines at once for a given list of [X,Y,Z] origins. Probably could do all the annotations at once as well by tossing in a repmat() .
|
Pages: 1 Prev: using case statement on string inputs when number of case choicesis unknown Next: MINLP in MATLAB |