3d contour plot in MATLAB

조회 수: 3 (최근 30일)
Pritesh Shah
Pritesh Shah 2014년 3월 7일
댓글: Pritesh Shah 2014년 3월 7일
Hi,
I want to plot 3D contour in MATLAB. I have three dimensions (X, Y,X) and value of each value in specific grid.
Please help.
I have attached sample data set for the same.

답변 (1개)

David Sanchez
David Sanchez 2014년 3월 7일
To read your data:
[my_data headers] = xlsread('test data.xlsx');
But you present 4D data: 3 coordinate and value. Yo have to choose what to plot against what. For example:
>> x=my_data(:,1);
>> y=my_data(:,2);
>> z=my_data(:,3);
>> tt=my_data(:,4);
>> plot3(x,y,tt)
>> tt2=reshape(tt,51,121);
>> contour(x(1:51),y(1:121),tt2')
  댓글 수: 1
Pritesh Shah
Pritesh Shah 2014년 3월 7일
I want to plat tt data for every value of X, Y and Z.

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

카테고리

Help CenterFile Exchange에서 Contour Plots에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by