I have say
X_datas = [0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1]
Y_datas = [0 1.12 2.26 3.14 4.22 5.66 1.56 7.45 8.04 9.52 1]
How to plot 3D using these datas?

 Respuesta aceptada

Walter Roberson
Walter Roberson el 9 de En. de 2021

0 votos

X_datas = [0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1];
Y_datas = [0 1.12 2.26 3.14 4.22 5.66 1.56 7.45 8.04 9.52 1];
Z_datas = zeros(size(X_datas));
plot3(X_datas, Y_datas, Z_datas); xlabel('x'); ylabel('y'); zlabel('z')

3 comentarios

Ravikiran Mundewadi
Ravikiran Mundewadi el 10 de En. de 2021
What about surface and meshgrid?
Ravikiran Mundewadi
Ravikiran Mundewadi el 10 de En. de 2021
How to plot ODE in 3D plot?
Walter Roberson
Walter Roberson el 10 de En. de 2021
For surface or meshgrid you need three variables.

Iniciar sesión para comentar.

Más respuestas (0)

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by