3D plotting of experimental data
6 views (last 30 days)
Show older comments
simion musekiwa
on 22 Oct 2017
Commented: Star Strider
on 7 Apr 2019
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 Comments
Rik
on 22 Oct 2017
Judging by the tags, you have a reasonable idea of how to tackle this problem. What have you tried?
Accepted Answer
Star Strider
on 22 Oct 2017
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 Comments
James Greenwood
on 7 Apr 2019
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
Star Strider
on 7 Apr 2019
@Jim Greenwood — There are several interpolation options. My favourite for the sort of problem you describe is the griddata (link) function.
More Answers (0)
See Also
Categories
Find more on Lighting, Transparency, and Shading in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!