Convert 2-D to 1-D

Convert 2-D matrix input to 1-D vector

Library

Signal Management / Signal Attributes

dspsigattribs

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.

Dialog Box

Supported Data Types

PortSupported Data Types

Input

  • Double-precision floating point

  • Single-precision floating point

  • Fixed point (signed and unsigned)

  • Boolean

  • 8-, 16-, and 32-bit signed integers

  • 8-, 16-, and 32-bit unsigned integers

  • Enumerated

Output

  • Double-precision floating point

  • Single-precision floating point

  • Fixed point (signed and unsigned)

  • Boolean

  • 8-, 16-, and 32-bit signed integers

  • 8-, 16-, and 32-bit unsigned integers

  • Enumerated

See Also

BufferDSP System Toolbox
Convert 1-D to 2-DDSP System Toolbox
Frame Status Conversion (Obsolete)DSP System Toolbox
ReshapeSimulink
SubmatrixDSP System Toolbox

Was this topic helpful?