4-D plot in Matlab

1 vue (au cours des 30 derniers jours)
Adam Silva
Adam Silva le 12 Mar 2015
Commenté : Adam Silva le 13 Mar 2015
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."

Réponse acceptée

Chad Greene
Chad Greene le 13 Mar 2015
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.
  1 commentaire
Adam Silva
Adam Silva le 13 Mar 2015
Thank you. It works.

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Line Plots dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by