3D plotting in Matlab

2 visualizaciones (últimos 30 días)
Zeab
Zeab el 18 de Feb. de 2019
Comentada: Star Strider el 19 de Feb. de 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!

Respuesta aceptada

Star Strider
Star Strider el 18 de Feb. de 2019
If you are plotting vectors, use the plot3 (link) function. Other possibilities are scatter3 (linked to in the plot3 page), and stem3 (link).
  2 comentarios
Zeab
Zeab el 19 de Feb. de 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
Star Strider
Star Strider el 19 de Feb. de 2019
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.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Surface and Mesh Plots en Help Center y File Exchange.

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by