此函數實現矩陣的上下翻轉。fliplw()實現左右旋轉。
舉例:
a =[1 2;3 4;5 6]
flipud(a)的結果:
5 6
3 4
1 2
fliplr(a)的結果:
2 1
4 3
6 5
單詞flip在牛津詞典中的第一條意思就是:
1.(使)快速翻轉,迅速翻動
to turn over into a different position with a sudden quick movement; to make sth do this
flipud=flip up and down
fliplw=flip left and write