Forums

workspace coefficients in Simulink

Started by Nalin Pithwa February 28, 2003
Hello,

I am using MATLAB and Simulink based DSP/Communications Blockset in my
application. I need a small help. In the design of my system, one of the
blocks is a FIR filter. The filter coefficients are generated during
run-time and they change adaptively.

How can I use those filter coefficients, which are generated at run-time in
the FIR filter in Simulink ? Is it possible to store these coefficients in
workspace and access the coefficients from workspace for use in the FIR
filter ? If so, how do I store them in the workspace? If this is not
possible, what is the other alternative?

Thanks in advance,
Nalin



Hi Nalin,
You have not mentioned how you are generating the
coefficients. If it is generated within simulink by
some other blocks then you can choose in the digital
filter block from DSP Blockset the option for
coefficients coming from input port and feed the
generated coefficients in that port.

If you have an m-file then it is better to write an
m-file S-function. You can also look at the existing
adaptive filters in DSP Blockset.

Navan

--- Nalin Pithwa <> wrote:
> Hello,
>
> I am using MATLAB and Simulink based
> DSP/Communications Blockset in my
> application. I need a small help. In the design of
> my system, one of the
> blocks is a FIR filter. The filter coefficients are
> generated during
> run-time and they change adaptively.
>
> How can I use those filter coefficients, which are
> generated at run-time in
> the FIR filter in Simulink ? Is it possible to store
> these coefficients in
> workspace and access the coefficients from workspace
> for use in the FIR
> filter ? If so, how do I store them in the
> workspace? If this is not
> possible, what is the other alternative?
>
> Thanks in advance,
> Nalin


__________________________________________________