How can I set the properties for multiple objects created with the plot3 function?
Show older comments
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?
Accepted Answer
More Answers (0)
Categories
Find more on Line Plots in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!