3D plotting of experimental data

hello there,i have data to be plotted to show spatial and temporal variation of a variable MUF but i dont know how to do it in matlab .i have attached the excel
file containing the data and an image of the expected outcome .please help

2 个评论

Judging by the tags, you have a reasonable idea of how to tackle this problem. What have you tried?
a = dlmread('filename.txt'); surf(a); the output 3D figure is not like the one in the image but thye data set is almost the same

请先登录,再进行评论。

 采纳的回答

This should get you started:
[D,S,R] = xlsread('predicted MUF day(12).xls');
Time = D(:,1);
MUF_Distc = regexp(S, '\w*\d', 'match');
MUF_Dist = str2double([MUF_Distc{:}]);
MUF_Data = D(:,2:end);
figure(1)
surfc(MUF_Dist, Time, MUF_Data, 'EdgeColor','none')
grid on
set(gca, 'YDir','reverse')
xlabel('Distance (km)')
ylabel('Time (UT)')
zlabel('MUF (MHz)')
view([-110 25])

4 个评论

Thank you so much it worked
As always, my pleasure.
This sounds to be close to what I want to do, but doesn't go back far enough!
I have a set of points(X,Y,Z), where X and y are the independent variables, but are not uniformly spread over the X,Y plane, How can i produce a contour or mesh plot showing the Z behaviour?
Jim Greenwood
@Jim Greenwood — There are several interpolation options. My favourite for the sort of problem you describe is the griddata (link) function.

请先登录,再进行评论。

更多回答(0 个)

类别

在 帮助中心 和 File Exchange 中查找有关 Data Distribution Plots 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by