3D plotting in Matlab

1 次查看(过去 30 天)
Zeab
Zeab 2019-2-18
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 CenterFile Exchange 中查找有关 Surface and Mesh Plots 的更多信息

产品

Community Treasure Hunt

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

Start Hunting!

Translated by