DSP Blockset | ![]() ![]() |
Flip the input vertically or horizontally.
Library
Signal Management / Indexing
Description
The Flip block vertically or horizontally reverses the M-by-N input matrix, u
. The output always has the same dimension and frame status as the input.
When Columns is selected from the Flip along menu, the block vertically flips the input so that the first row of the input is the last row of the output.
y = flipud(u) % Equivalent MATLAB code
For convenience, length-M 1-D vector inputs are treated as M-by-1 column vectors for vertical flipping.
When Rows is selected from the Flip along menu, the block horizontally flips the input so that the first column of the input is the last column of the output.
y = fliplr(u) % Equivalent MATLAB code
For convenience, length-N 1-D vector inputs are treated as 1-by-N row vectors for horizontal flipping. The output always has the same dimension and frame status as the input.
Dialog Box
See Also
Selector |
Simulink |
Transpose |
DSP Blockset |
Variable Selector |
DSP Blockset |
flipud |
MATLAB |
fliplr |
MATLAB |
![]() | FIR Rate Conversion | Forward Substitution | ![]() |