필터 지우기
필터 지우기

plotting a 3d graph for a 3d table

조회 수: 5 (최근 30일)
ammar ansari
ammar ansari 2024년 4월 30일
댓글: Voss 2024년 4월 30일
I have a table and I want to plot a 3d graph for that.

채택된 답변

Voss
Voss 2024년 4월 30일
M = readmatrix('file.xlsx')
M = 22x10
NaN NaN 0.9200 1.3000 1.6100 2.2000 3.2000 4.1200 13.2000 26.0000 NaN 3.2000 0 0 0 0 0 -0.0200 0.0100 -0.0800 NaN 3.0000 0 0 0 0 0 -0.0200 0.0100 -0.0800 NaN 2.8900 0 0 0 0 0 -0.0200 0.0100 -0.0800 NaN 2.8000 0 0 0 0 0 -0.0200 0.0100 -0.0800 NaN 2.6000 0 0 0 0 0 -0.0200 0.0100 -0.0800 NaN 2.4200 0 0 0 0 0 -0.0200 0.0130 -0.0800 NaN 2.4000 0 0 0 0 0 -0.0200 0.0130 -0.0800 NaN 2.2000 0 0 0 0 0 -0.0500 0.0200 -0.1000 NaN 2.0000 0 0 0 0 0.0200 -0.0600 -0.0050 -0.1200
<mw-icon class=""></mw-icon>
<mw-icon class=""></mw-icon>
x = M(2:end,2);
y = M(1,3:end);
z = M(2:end,3:end);
figure
surf(x,y,z.')
  댓글 수: 2
ammar ansari
ammar ansari 2024년 4월 30일
Bundle of thanks
Voss
Voss 2024년 4월 30일
You're welcome!

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by