How can I use the 'set' command to set the "xdata", "ydata", and "zdata" properties of multiple 3D objects created with the "plot3" function?
I am currently attempting to plot 2 independent entities in 3D space, so I've created an appropriate object:
org = plot3(x1,y1,z1,x2,y2,z2); % ...
% Do some conditional math on (x,y,z) data
% ...set(org, 'xdata1', x1, 'ydata1', y1, 'zdata1', z1, 'xdata2', x2, 'ydata2', y2, 'zdata2', z2); % Update the appropriate values, based-upon the above Conditional Math.
However, when I attempt to perform this operation, I of course get an error – because "xdata1" is not a Line Property.
Must I use a different command than <set()> to accomplish my goals? If so, what?
Best Answer