MATLAB Answers

Zeab
0

3D plotting in Matlab

Asked by Zeab
on 18 Feb 2019
Latest activity Commented on by Star Strider
on 19 Feb 2019
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!

  0 Comments

Sign in to comment.

1 Answer

Answer by Star Strider
on 18 Feb 2019
 Accepted Answer

If you are plotting vectors, use the plot3 (link) function. Other possibilities are scatter3 (linked to in the plot3 page), and stem3 (link).

  2 Comments

Zeab
on 19 Feb 2019
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
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.

Sign in to comment.