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 Commenti

Rik
Rik il 22 Ott 2017
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

Accedi per commentare.

 Risposta accettata

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 Commenti

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.

Accedi per commentare.

Più risposte (0)

Categorie

Community Treasure Hunt

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

Start Hunting!

Translated by