Date: Jan 27, 2013 9:51 AM
Author: dpb
Subject: Re: Average of Data in MATLAB

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"