Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

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.

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

Introduced before R2006a

Was this topic helpful?