3d contour plot in MATLAB

1 vue (au cours des 30 derniers jours)
Pritesh Shah
Pritesh Shah le 7 Mar 2014
Commenté : Pritesh Shah le 7 Mar 2014
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.

Réponses (1)

David Sanchez
David Sanchez le 7 Mar 2014
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 commentaire
Pritesh Shah
Pritesh Shah le 7 Mar 2014
I want to plat tt data for every value of X, Y and Z.

Connectez-vous pour commenter.

Catégories

En savoir plus sur Contour Plots dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by