フィルターのクリア

Showing points on a graph

2 ビュー (過去 30 日間)
Rightia Rollmann
Rightia Rollmann 2017 年 1 月 22 日
回答済み: Star Strider 2017 年 1 月 22 日
I want to show three points on a 3D graph. x, y, and z show the x, y, and z coordinates of point1, point2, and point3, respectively. How?
x = [1 2 3]; y = [4 5 6]; z = [7 8 9];

採用された回答

Star Strider
Star Strider 2017 年 1 月 22 日
I prefer stem3 for these, but plot3 or scatter3 (or a combination of them) will also work, depending on what you want to do.
The Code:
x = [1 2 3];
y = [4 5 6];
z = [7 8 9];
figure(1)
stem3(x, y, z)
grid on

その他の回答 (0 件)

カテゴリ

Help Center および File Exchange2-D and 3-D Plots についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by