4-D plot in Matlab
4 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Adam Silva
il 12 Mar 2015
Commentato: Adam Silva
il 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."
0 Commenti
Risposta accettata
Chad Greene
il 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.
Più risposte (0)
Vedere anche
Categorie
Scopri di più su 2-D and 3-D Plots in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!