Prev: 2D plot of surface slice
Next: problem with mimochan
From: Bruno Luong on 19 Nov 2009 16:58 "Ryan Utz" <rutz(a)al.umces.edu> wrote in message <he4ef2$3jv$1(a)fred.mathworks.com>... >. I have used accumarray before... but thought it just summed the data of interest (i.e. accumulate). Can it be used to find basic stats, too? Yes, just pass a function handle that accomplishes whatever stat you need. Bruno
From: TideMan on 19 Nov 2009 17:25 On Nov 20, 9:18 am, "Ryan Utz" <r...(a)al.umces.edu> wrote: > Hi all, > > I have data in a time series that look like this: > > 1960 11 29 11.7 > 1960 11 30 11.1 > 1960 12 1 10 > 1960 12 2 9.4 > 1960 12 3 8.9 > > Where the format is year, month, day and data in a matrix. I need to find some basic stats on the data for each month. I've tried tinkering with codes I've written previously using things like 'find' and 'ismember' functions, but I can't seem to get to the bottom of it. I can easily make a matrix that is the unique year/month combination but can't seem to link these to the actual data to get the basic stats. Any advice? > > Thanks, > Ryan Back on 29 Oct you asked the same question. What was wrong with the suggestions given you back then? Have you actually tried them?
From: jenya polyakova on 20 Nov 2009 14:57
I had the same problem. I posted a code a few days ago. Use function myunique http://www.mathworks.com/matlabcentral/newsreader/view_thread/265613 "Ryan Utz" <rutz(a)al.umces.edu> wrote in message <he495r$3nb$1(a)fred.mathworks.com>... > Hi all, > > I have data in a time series that look like this: > > 1960 11 29 11.7 > 1960 11 30 11.1 > 1960 12 1 10 > 1960 12 2 9.4 > 1960 12 3 8.9 > > Where the format is year, month, day and data in a matrix. I need to find some basic stats on the data for each month. I've tried tinkering with codes I've written previously using things like 'find' and 'ismember' functions, but I can't seem to get to the bottom of it. I can easily make a matrix that is the unique year/month combination but can't seem to link these to the actual data to get the basic stats. Any advice? > > Thanks, > Ryan |