3D plotting of experimental data

6 views (last 30 days)
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
Rik on 22 Oct 2017
Judging by the tags, you have a reasonable idea of how to tackle this problem. What have you tried?
simion musekiwa
simion musekiwa on 22 Oct 2017
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

Sign in to comment.

Accepted Answer

Star Strider
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
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
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.

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!