Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: Average of Data in MATLAB
Replies: 1   Last Post: Jan 27, 2013 9:51 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View  
dpb

Posts: 6,849
Registered: 6/7/07
Re: Average of Data in MATLAB
Posted: Jan 27, 2013 9:51 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

On 1/27/2013 8:40 AM, Niraj wrote:
...

> I have a large array of data being sampled at 1Khz. What I would like to
> do is to average a small number of data, say 10 or 20 data, and obtain
> its average and repeat this for all my data so that I can eventually
> plot a square wave data. I would also like to set a value of average
> below which the the amplitude should just drop to zero. Would anyone
> know how to work this?


a) doc filter % example, specifically...

b) a(a<thresh)=0; % look up "logical addressing"

--




Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2013. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.