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.
  댓글 수: 1
Adam Silva
Adam Silva 2015년 3월 13일
Thank you. It works.

댓글을 달려면 로그인하십시오.

추가 답변 (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