MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi
Learn moreOpportunities for recent engineering grads.
Apply TodayMATLAB Central > MATLAB Newsreader > how to calculate piecewise average faster? 

Subject: how to calculate piecewise average faster? From: Jingbo Date: 16 Aug, 2010 19:33:05 Message: 1 of 6 
Hi, 
Subject: how to calculate piecewise average faster? From: Walter Roberson Date: 16 Aug, 2010 19:37:11 Message: 2 of 6 
Jingbo wrote: 
Subject: how to calculate piecewise average faster? From: Bruno Luong Date: 16 Aug, 2010 20:15:22 Message: 3 of 6 
"Jingbo " <duanjb@gmail.com> wrote in message <i4c3pg$7gt$1@fred.mathworks.com>... 
Subject: how to calculate piecewise average faster? From: Jingbo Date: 17 Aug, 2010 00:56:04 Message: 4 of 6 
Thank you very much 
Subject: how to calculate piecewise average faster? From: Jingbo Date: 17 Aug, 2010 01:01:05 Message: 5 of 6 
It seems that accumarray takes a lot of time. So I use running total mentioned by Walter to calculate the average. Now it becomes much faster. 
Subject: how to calculate piecewise average faster? From: Bruno Luong Date: 17 Aug, 2010 09:40:26 Message: 6 of 6 
"Jingbo " <duanjb@gmail.com> wrote in message <i4cn0h$esg$1@fred.mathworks.com>... 
No tags are associated with this thread.
A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.
Anyone can tag a thread. Tags are public and visible to everyone.