plotting wind direction V/S time in months (timeseries)

5 visualizzazioni (ultimi 30 giorni)
Mitson Monteiro il 10 Giu 2013
hi friends, i want to plot wind direction data that i have, the data is day wise and have seporate files for each year from 2007- 2013 , i have to plot in one plot....
3 CommentiMostra 1 commento meno recenteNascondi 1 commento meno recente
Mitson Monteiro il 10 Giu 2013
ya ya what you say is the same thing that i want... can u give me the code for it ... thanks
Mitson Monteiro il 10 Giu 2013
this is an example of the data file i need to plot wind direction v/s yymmdd what are the possible wind direction plots using this data YYYYMMDD HHMM UWND VWND WSPD WDIR 20071118 1200 -3.7 -3.2 4.9 228.7 20071119 1200 -4.5 -4 6 227.8 20071120 1200 -3.6 -4.8 6 217.2 20071121 1200 -4 1.3 4.2 288.1 20071122 1200 -0.9 3.2 3.3 344.8 20071123 1200 1.1 2.8 3 22 20071124 1200 -4.8 1.3 4.9 285.1 20071125 1200 -6.9 -0.5 6.9 265.5 20071126 1200 -5.9 -1.9 6.2 252.1

Accedi per commentare.

Risposte (1)

Hugo il 10 Giu 2013
Suppose you have the data in a matrix A, each row representing a measurement. The day would be in the first column and the direction of the wind in the sixth column. Then you can do:
plot(A(:,1),A(:,6));
set(gca,'YLim',[0,360]); % Range of angles
set(gca,'XTickLabel',[]);
for ind=1:size(A,1),
text(A(ind,1),-25,num2str(A(ind,1)),'Rotation',45,'VerticalAlignment','middle','HorizontalAlignment','center');
end
0 CommentiMostra -2 commenti meno recentiNascondi -2 commenti meno recenti

Accedi per commentare.

Categorie

Scopri di più su 2-D and 3-D Plots in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by