| Signal Processing Blockset™ | ![]() |
Signal Management / Signal Attributes
dspsigattribs
The Convert 1-D to 2-D block reshapes a length-Mi 1-D vector or an Mi-by-Ni matrix to an Mo-by-No matrix, where Mo is specified by the Number of output rows parameter, and No is specified by the Number of output columns parameter.
y = reshape(u,Mo,No) % Equivalent MATLAB code
The input is reshaped columnwise, as shown in the two cases below. The length-6 vector and the 2-by-3 matrix are both reshaped to the same 3-by-2 output matrix.

An error is generated when (Mo*No)≠(Mi*Ni). That is, the total number of input elements must be conserved in the output.
The output is frame based when you select the Frame-based output check box; otherwise, the output is sample based.

The number of rows, Mo, in the output matrix.
The number of rows, No, in the output matrix.
Creates a frame-based output when selected.
| Port | Supported Data Types |
|---|---|
Input |
|
Output |
|
| Buffer | Signal Processing Blockset |
| Convert 2-D to 1-D | Signal Processing Blockset |
| Frame Status Conversion (Obsolete) | Signal Processing Blockset |
| Reshape | Simulink |
| Submatrix | Signal Processing Blockset |
![]() | Contiguous Copy (Obsolete) | Convert 2-D to 1-D | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |