block
Generate block from a digital filter
Syntax
block(hd)
block(hd,'propertyname1',propertyvalue1,'propertyname2',propertyvalue2,...)
Description
block(hd) generates a DSP System Toolbox™ block equivalent to the digital filter, hd.
block(hd,'propertyname1',propertyvalue1,'propertyname2',propertyvalue2,...)
generates a DSP System Toolbox block using the options specified in the property name/property value
pairs. The valid properties and their values are
Property Name | Property Values | Description and Values |
|---|---|---|
|
| Determine which Simulink® model gets the block. Enter
|
|
| Specify the name of the generated block. The name appears below
the block in the model. When you do not specify a block name, the
default is |
|
| Tell |
|
| Specify whether to apply the current filter states to the new
block. This lets you save states from a filter object you may have
used or configured in a specific way. The default setting of
|
|
| Specify how to set the Coefficient source
in the block mask. The default setting is |
|
| Specify whether to map the coefficients of the filter to the
ports of the block. The |
|
| Specify the coefficient variable names as a cell array of character vectors.
|
|
| Specify sample-based ( |
|
| Specify how the block adjusts the rate at the output to
accommodate the reduced number of samples. This parameter applies
only when |
Using block to Realize a Fixed-Point Digital Filter
When the source filter hd is fixed-point, the input word and
fraction lengths for the block are derived from the block input signal. The
realization process issues a warning and ignores the input word and input fraction
lengths that are part of the source filter object, choosing to inherit the settings
from the input data. Other fixed-point properties map directly to settings for word
and fraction length in the realized block.
Examples
Version History
Introduced in R2011a



