Plotting time-series data
2 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
PIYUSH CHOUDHARY
il 9 Ott 2019
Commentato: PIYUSH CHOUDHARY
il 9 Ott 2019
I have an excel file from which I read the inputs corresponding to different months and years (from Jan,1901 to Dec, 2014). I used that input to get my output for these points in time.
The output i get is stored in the matrix named "PET". I have to plot these PET values on y-axis and the time stamps to which they belong on the x-axis.
I am attaching here the output matrix. (The first row are numbers for Jan 1901, second row for Feb 1901 and so on until Dec, 2014....The columns represent different places for which the input was given and output was to be calculated. Here I need to plot any one of the columns, say col 1, against the time stamps). Please offer me any help.
Regards,
Piyush
.png)
2 Commenti
Risposta accettata
Walter Roberson
il 9 Ott 2019
ts = datetime([1901, 1, 1]) + calmonths(0:size(PET,1)-1).';
plot(ts, PET(:,3)) %for example
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Descriptive Statistics and Visualization 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!