From: Pierre on
Hi,

I can't figure out how to simply model on Simulink (without using m-function or s-function) the following operation:

s(k) = (1/N) * [e(k) + e(k-1) + e(k-2) + .... + e(k-N)] with N>=1 configurable.
with e for input, s for output

Thanks in advance
From: Phil Goddard on
You can use any of the filter blocks in the Discrete library.

E.g. the Discrete FIR Filter block with coefficients set to ones(1,N)/N where N is something you specify.

Phil.
From: Pierre on
Thank you Phil.

It's a good idea but I can't figure out how to initialize the states with the Discrete Filter block on matlab R2007a.

Pierre

"Phil Goddard" <philNOSPAM(a)goddardconsulting.ca> wrote in message <hjfvig$hjk$1(a)fred.mathworks.com>...
> You can use any of the filter blocks in the Discrete library.
>
> E.g. the Discrete FIR Filter block with coefficients set to ones(1,N)/N where N is something you specify.
>
> Phil.
 | 
Pages: 1
Prev: Reading in Text files
Next: Reading in Text files