필터 지우기
필터 지우기

Plotting 4D data

조회 수: 1 (최근 30일)
Abhinav Srivastava
Abhinav Srivastava 2019년 8월 29일
댓글: Abhinav Srivastava 2019년 8월 30일
Dear MATLAB Users,
I have the following matrix,
197.32 5.963 4.427 1.245
179.91 5.867 4.615 1.127
124.75 5.833 4.725 0.779
91.65 5.785 5.175 0.714
150.94 6.113 4.322 1.688
66.89 6.322 4.006 2.104
18.32 6.498 3.932 2.579
Where column 2, column 3 and column 4 are coordinates of my system and column 1 is the time. I want to plot the coordinates and use column 1 as a color map. Kindly suggest the way.
Thanks in Advance ,
  댓글 수: 1
Rik
Rik 2019년 8월 29일
You could use plot3 in a loop.

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

채택된 답변

Bjorn Gustavsson
Bjorn Gustavsson 2019년 8월 29일
Try something like this:
t = M(:,1);
x = M(:,2);
y = M(:,3);
z = M(:,4);
scatter3(x,y,z,32,t,'filled')
HTH
  댓글 수: 1
Abhinav Srivastava
Abhinav Srivastava 2019년 8월 30일
Thanks a lot.

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

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