i need to plot a line in 3D scatter plot
29 ビュー (過去 30 日間)
古いコメントを表示
i have created a scatter plot with scatter3. now without clearing this plot I need to draw a line in the same graph. when I put plot3 after scatter3 it clears the plot and then gives me the plot3 graph without the scatter points
david
0 件のコメント
採用された回答
Star Strider
2018 年 9 月 28 日
figure
scatter3( ... )
hold on
plot3( ... )
hold off
grid on
4 件のコメント
Cristián Vera
2020 年 3 月 21 日
How can I plot with scatter(X,Y,pointsize,Z,'filled') using '-o' plot lines? Only uses circles.
Star Strider
2020 年 3 月 21 日
@Cristián Vera — Use plot rather than scattter to plot lines (with or without markers). What you want to do is not obvious, so perhaps using both (with the hold function) will do what you want. Experiment!
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Scatter Plots についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!