3d contour plot in MATLAB
1 次查看(过去 30 天)
显示 更早的评论
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.
0 个评论
回答(1 个)
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')
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Contour Plots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!