4-D plot in Matlab

1 Ansicht (letzte 30 Tage)
Adam Silva
Adam Silva am 12 Mär. 2015
Kommentiert: Adam Silva am 13 Mär. 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."

Akzeptierte Antwort

Chad Greene
Chad Greene am 13 Mär. 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 Kommentar
Adam Silva
Adam Silva am 13 Mär. 2015
Thank you. It works.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Line Plots finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by