Reshape
R2026bChange dimensionality of signal
Libraries:
Simulink /
Math Operations
HDL Coder /
Math Operations
Description
The Reshape block changes the dimensionality of the input signal to a dimensionality that you specify, using the Output dimensionality parameter. For example, you can use the block to change an N-element vector to a 1-by-N or N-by-1 matrix signal.
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.
"simulink/Math Operations/Reshape"
"hdlsllib/Math Operations/Reshape"
Example: add_block("simulink/Math Operations/Reshape","myModel/myBlock",MakeNameUnique="on")
Extended Capabilities
Version History
Introduced before R2006a