I have 4 vectors of size 50. How can I plot them in 4-D in Matlab. I tried "surf". But Matlab gives me an error "Z must be a matrix, not a scalar or vector."

 Respuesta aceptada

Chad Greene
Chad Greene el 13 de Mzo. de 2015

0 votos

For vectors v1, v2, v3, and v4, you can plot the first three vectors as x,y,z locations and v4 as color with
scatter3(v1,v2,v3,30,v4,'filled')
The 30 scales the marker size.

Más respuestas (0)

Categorías

Más información sobre 2-D and 3-D Plots en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 12 de Mzo. de 2015

Comentada:

el 13 de Mzo. de 2015

Community Treasure Hunt

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

Start Hunting!

Translated by