How can I set the properties for multiple objects created with the plot3 function?
古いコメントを表示
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?
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Line Plots についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!