User`s guide

Convert 2-D to 1-D
5-95
5Convert 2-D to 1-D
Purpose Convert a 2-D matrix input to a 1-D vector.
Library Signal Management / Signal Attributes
Description The Convert 2-D to 1-D block reshapes an M-by-N matrix input to a 1-D vector
with length M
N.
y = u(:) % Equivalent MATLAB code
The input is reshaped columnwise, as shown below for a 3-by-2 matrix.
The output is always sample-based.
Dialog Box
Supported
Data Types
See Also
u
1
u
4
u
2
u
5
u
3
u
6
(u
1
u
2
u
3
u
4
u
5
u
6
)
Fixed-point
Custom data types
Boolean
8-, 16-, and 32-bit signed integer
8-, 16-, and 32-bit unsigned integer
Single-precision floating point
Double-precision floating point
Buffer DSP Blockset
Convert 1-D to 2-D DSP Blockset
Frame Status Conversion DSP Blockset
Reshape Simulink
Submatrix DSP Blockset