Truncate
R2026bTruncate vectors by removing or keeping beginning or ending values
Libraries:
DSP System Toolbox /
Signal Operations
Description
The Truncate block removes or keeps values from the beginning or end of the input vectors. The number of values to remove or keep is determined by the offset value that you specify through the O ports (O1, O2, … ). The length of the truncated vector is determined by the Output port length and Output length parameters. The Number of input data-offset pairs parameter determines the number of input data-offset pairs.
Examples
Ports
Input
Output
Parameters
Block Characteristics
Data Types |
|
Direct Feedthrough |
|
Multidimensional Signals |
|
Variable-Size Signals |
|
Zero-Crossing Detection |
|
Programmatic Use: Add Block
To add the block programmatically, use the add_block function with one of these library block paths as the source.
"dspsigops/Truncate"
Example: add_block("dspsigops/Truncate","myModel/myBlock",MakeNameUnique="on")
Extended Capabilities
Version History
Introduced before R2006a
See Also
Detrend | Pad | DC Blocker | Unwrap
