realizemdl
Simulink subsystem block for filter
Syntax
realizemdl(FiltObject)
realizemdl(FiltObject,Name,Value)
Description
realizemdl(FiltObject)
generates a model
of the filter object FiltObject
in a Simulink® subsystem
block using sum, gain, and delay blocks from Simulink. The properties
and values of FiltObject
define the resulting subsystem
block parameters.
realizemdl
requires Simulink. To accurately
realize models of quantized filters, use Fixed-Point Designer™.
realizemdl(FiltObject,Name,Value)
generates
the model forFiltObject
with the associated Name,Value
pairs,
and any other values you set in FiltObject
.
Note
Subsystem filter blocks that you use realizemdl
to
create support sample-based input and output only. You cannot input
or output frame-based signals with the block.
Using the optional propertyname
/propertyvalue
pairs
lets you control more fully the way the block subsystem model gets
built, such as where the block goes, what the name is, or how to optimize
the block structure. Valid properties and values for realizemdl
are
listed in this table, with the default value noted and descriptions
of what the properties do.
Property Name | Property Values | Description |
---|---|---|
|
| Specify whether to add the block to your current Simulink model
or create a new model to contain the block. If you provide the name
of a current subsystem in |
|
| Provides the name for the new subsystem block. By default
the block is named |
|
| Specify whether to map the coefficients of the filter to the ports of the block. |
|
| Specifies whether to apply the current filter states
to the realized model. This lets you save states from a filter object
you may have used or configured in a specific way. The default setting
of |
|
| Specify whether to overwrite an existing block with the same name or create a new block. |
|
| Specify whether to remove zero-gain blocks. |
|
| Specify whether to replace unity-gain blocks with direct connections. |
|
| Specify whether to replace negative unity-gain blocks with a sign change at the nearest sum block. |
|
| Specify whether to replace cascaded chains of delay blocks with a single integer delay block to provide an equivalent delay. |
|
| Specify the coefficient variable names as a cell
array. |
|
| Specify frame-based ( The |
|
| Specify how the block adjusts the rate at the output
to accommodate the reduced number of samples. This parameter applies
only when |
Note
OptimizeZeros
, OptimizeOnes
,
and OptimizeNegOnes
are 'on'
by default. If you want to map all your coefficients to a port, do
one of these:
Turn off these optimization properties.
Do not initialize the input filter with zeros, ones, or negative ones.
Examples
Version History
Introduced in R2009b