DSP Blockset    
Convert 1-D to 2-D

Reshape a 1-D or 2-D input to a 2-D matrix with the specified dimensions.

Library

Signal Management / Signal Attributes

Description

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.

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 if (Mo*No)(Mi*Ni). That is, the total number of input elements must be conserved in the output.

The output is frame-based if the Frame-based output check box is selected; otherwise, the output is sample-based.

Dialog Box

Number of output rows
The number of rows, Mo, in the output matrix. Tunable.
Number of output columns
The number of rows, No, in the output matrix. Tunable.
Frame-based output
Creates a frame-based output when selected. Tunable.

Supported Data Types

To learn how to convert to the above data types in MATLAB and Simulink, see Supported Data Types and How to Convert to Them.

See Also

Buffer
DSP Blockset
Convert 2-D to 1-D
DSP Blockset
Frame Status Conversion
DSP Blockset
Reshape
Simulink
Submatrix
DSP Blockset

Also see Signal Attributes for a list of all the blocks in the Signal Attributes library.


  Constant Ramp Convert 2-D to 1-D