Matlab Tricks(二十四)—— 将一副图像逆时针旋转 180° function I2 = rot180(I) I2 = I(end:-1:1, end:-1:1); % 上下颠倒,左右颠倒;