Plotting from a mat file

Hello, i have a situation that i cannot figure out with the mat file included in the attachment. I have to take the value of the 12th month of a year(example 1999),value of the first and second month of 2000 and calculate the mean values of those so that those three will make one point on my graph. And repeat that for every year. FYI 12th month of 1999 and 1st and 2nd month of 2000 will be presented on the graph as for year 2000, because i have to calculate for the winter of that year,which includes december of the year before. Any pointers on this?

4 Comments

Emil - the following struct is loaded from your mat file
X = load('Podatci.mat');
X =
AVHRR_91_08: [6332x25 single]
CMC_91_08: [6332x25 single]
MEDSEA_91_08: [6332x25 single]
POSTAJE_CLM_hvar: [6332x5 double]
POSTAJE_CLM_komiza: [6332x5 double]
POSTAJE_CLM_palagruza: [6332x5 double]
POSTAJE_CLM_split: [6332x5 double]
What can you tell us about the data? What do the 6332 rows represent? Please describe.
Emil Eterovic
Emil Eterovic on 1 Feb 2017
Edited: Emil Eterovic on 1 Feb 2017
The first column represents years,from 1991 to 2008. The second are months,starting from September of 1991 to December of 2008. The third are days for each month. Fourth column is not important. The last column are temperature values for each day of those dates and there are 6332 of them,meaning there were 6332 measurements. The columns after the fifth are also unimportant for now. But to plot I need only those as described in the original post. Hope this clears things.
Emil - the first column of which member of the structure? You mention that the first column represents years from 1991 to 2008. But there are 5 or 25 columns (depending upon the member) with 6332 rows...
Emil Eterovic
Emil Eterovic on 1 Feb 2017
Edited: Emil Eterovic on 1 Feb 2017
Yes, the AVHRR_91_08,CMC_91_08 and MEDSEA_91_08 have 25 columns and the rest have 5. But the first 5 out of those 25 are representing the same kind of data as the total 5 columns of the rest. For all members of the structure,the first five columns are the same, in regards to the data they represent,meaning in all of them we have years,months,days for the first 3 columns and the 5th is the data corresponding to the date.

Answers (0)

This question is closed.

Asked:

on 31 Jan 2017

Closed:

on 20 Aug 2021

Community Treasure Hunt

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

Start Hunting!