3D plotting in Matlab

2 ビュー (過去 30 日間)
Zeab
Zeab 2019 年 2 月 18 日
コメント済み: Star Strider 2019 年 2 月 19 日
Dear All,
I have three variables,each are vector of ,let's say five elements each,I want to plot the the 3D plot of this vector variables.this might be a silly question but i doubt how to generate the 3D plot of the three variables that are independenat set of vectores with equal dimension.
Any help will be appreciated,
Thank you!

採用された回答

Star Strider
Star Strider 2019 年 2 月 18 日
If you are plotting vectors, use the plot3 (link) function. Other possibilities are scatter3 (linked to in the plot3 page), and stem3 (link).
  2 件のコメント
Zeab
Zeab 2019 年 2 月 19 日
Dear Star strider;
thank you for your reply,let me clear my question,I have two vectors measured repeatdely,lets say five times,i=[1 2 3 4 5].The measured values is a metric value (Accuracy) ,let's say A1=[98.5 99 99.5 97 98] and the remaining vector is the time taken to measure this metric value ,let's say t=[0.5 0.55 0.6 0.4 0.45].my intention is to plot the 3d plot ,the accuracy,the iteration and the time in a visually appealing way.
Thank you
Star Strider
Star Strider 2019 年 2 月 19 日
I have no idea what you want.
This works:
i=[1 2 3 4 5];
A1=[98.5 99 99.5 97 98];
t=[0.5 0.55 0.6 0.4 0.45];
plot3(i, A1, t)
grid on
Experiment to get the result you want.

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeSurface and Mesh Plots についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by