How to generate?
2 views (last 30 days)
Show older comments
I'm a beginner of this program. Please help me to do the plot like figure 2 My editor note: scatter(x1,y1,z1,"filled",'*'); hold on
0 Comments
Accepted Answer
Star Strider
on 12 Jan 2022
Try this —
x1 = randn(10,1); % Column Vectors
y1 = randn(size(x1));
z1 = randn(size(x1));
figure
scatter3(x1, y1, z1, 'filled')
grid on
zv = zeros(size(x1));
figure
scatter3(x1, y1, z1, 'filled')
hold on
plot3([zv x1]', [zv y1]', [zv z1]')
scatter3(0, 0, 0, 150, 'g', 'p', 'filled')
hold off
grid on
.
4 Comments
More Answers (0)
See Also
Categories
Find more on Graphics Objects 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!