How can I plot three variables in one 3D graph from two 2D graphs ?

6 ビュー (過去 30 日間)
omar diouri
omar diouri 2018 年 7 月 1 日
コメント済み: Star Strider 2018 年 7 月 4 日
3 variables x, y and z. I have two 2D graphs. The first 2D graph is obtained by keeping the 'x' constant and varying the 'y', as result, variation of 'z' as a function of 'y' with 'x' is constant. The second 2D graph is obtained, this time, by keeping the 'y' constant and varying the 'x', as result, variation of 'z' as a function of 'x' with 'y' is constant. Now, I want to plot the variation of the 3 variables x,y and z in a single 3D graph. Could you help me please?

採用された回答

Star Strider
Star Strider 2018 年 7 月 1 日
See if the plot3 (link) function or similar (such as scatter3 or stem3) will do what you want.
Example
figure
scatter3(x, y, z)
grid on
  4 件のコメント
omar diouri
omar diouri 2018 年 7 月 4 日
Yes, you are right. Thank you very much.
Star Strider
Star Strider 2018 年 7 月 4 日
As always, my pleasure.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeAnnotations についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by