flipud.sci
来自「小波分解源代码」· SCI 代码 · 共 17 行
SCI
17 行
function y = flipud(x)
//FLIPUD Flip matrix in up/down direction.
// FLIPUD(X) returns X with columns preserved and rows flipped
// in the up/down direction. For example,
//
// X = 1 4 becomes 3 6
// 2 5 2 5
// 3 6 1 4
//
// See also FLIPLR, ROT90, FLIPDIM.
// Copyright Aldo I Maalouf
if length2(size(x))~=2, error('X must be a 2-D matrix.'); end
[m,n] = size(x);
y = x(m:-1:1,:);
endfunction
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?