Flip input vertically or horizontally
The Flip block vertically or horizontally reverses the M-by-N input matrix, u. The output always has the same dimensionality as the input.
When you set the Flip along parameter to Columns, the block flips the input vertically so the first row of the input becomes the last row of the output.
y = flipud(u) % Equivalent MATLAB code
When flipping the input vertically, the block treats length-M unoriented vector inputs as M-by-1 column vectors.
When you set the Flip along parameter to Rows, the block flips the input horizontally so the first column of the input becomes the last column of the output.
y = fliplr(u) % Equivalent MATLAB code
When flipping the input horizontally, the block treats length-N unoriented vector inputs as 1-by-N row vectors.
This block supports Simulink® virtual buses.
|Port||Supported Data Types|