Borrar filtros
Borrar filtros

Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

plot3 of multidimensional array

1 visualización (últimos 30 días)
Ziv Kassner
Ziv Kassner el 11 de Abr. de 2019
Cerrada: MATLAB Answer Bot el 20 de Ag. de 2021
I want to plot3 a body line.
'body' is a 2*3*280 array of XYZ coordinates that correspond to:
body(1,1:3,:) is headX headY headZ
body(2,1:3,:) is tailX tailY tailZ
280 is the time.
f=[5,27,47;47,68,88;88,112,133;133,156,179;179,199,217;217,237,256];
for i = 1:size(f,1)
plot3(body(:,1,i:f(i,3)),...
body(:,2,f(i,1):f(i,3)),...
body(:,3,f(i,1):f(i,3)))
end
I keep getting an error msg:
Error using plot3
Data cannot have more than 2 dimensions.
how can I do it?
Thanks,
Ziv
  4 comentarios
jahanzaib ahmad
jahanzaib ahmad el 11 de Abr. de 2019
have u tried trisurf ?
Ziv Kassner
Ziv Kassner el 14 de Abr. de 2019
I don't see the relevance...

Respuestas (0)

La pregunta está cerrada.

Productos


Versión

R2017a

Community Treasure Hunt

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

Start Hunting!

Translated by