How to generate?
2 次查看(过去 30 天)
显示 更早的评论
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 个评论
采纳的回答
Star Strider
2022-1-12
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 个评论
更多回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!