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 comentarios

Rik
Rik el 22 de Oct. de 2017
Judging by the tags, you have a reasonable idea of how to tackle this problem. What have you tried?
simion musekiwa
simion musekiwa el 22 de Oct. de 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

Iniciar sesión para comentar.

 Respuesta aceptada

Star Strider
Star Strider el 22 de Oct. de 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 comentarios

simion musekiwa
simion musekiwa el 22 de Oct. de 2017
Thank you so much it worked
Star Strider
Star Strider el 22 de Oct. de 2017
As always, my pleasure.
James Greenwood
James Greenwood el 7 de Abr. de 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 el 7 de Abr. de 2019
@Jim Greenwood — There are several interpolation options. My favourite for the sort of problem you describe is the griddata (link) function.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Data Distribution Plots en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 22 de Oct. de 2017

Comentada:

el 7 de Abr. de 2019

Community Treasure Hunt

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

Start Hunting!

Translated by