4-D plot in Matlab

1 次查看(过去 30 天)
Adam Silva
Adam Silva 2015-3-12
评论: Adam Silva 2015-3-13
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."

采纳的回答

Chad Greene
Chad Greene 2015-3-13
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.

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Line Plots 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by