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.

The output is always sample-based.

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

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

See Also

BufferSignal Processing Blockset
Convert 1-D to 2-DSignal Processing Blockset
Frame Status ConversionSignal Processing Blockset
ReshapeSimulink
SubmatrixSignal Processing Blockset

  


 © 1984-2008- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS