flip

版本 1.4.0.0 (1.0 KB) 作者: Marco Borges
Flip vectors and matrices in all directions
611.0 次下载
更新时间 2014/7/29

查看许可证

Flip flips vectors and matrices in all directions
unlike fliplr and flipud functions, FLIP don't preserve row nor columns.
Return x = [ x[N],x[N-1],...,x[1] ] for N length column or row vector;
Return X = [ X[M,N],X[M,N-1],...X[M,1]; ]
[ X[M-1,N],X[M-1,N-1],...X[M-1,1]; ]
... .. ...
[ X[1,N], X[1,N-1], ... X[1,1] ] for M,N matrix;

引用格式

Marco Borges (2024). flip (https://www.mathworks.com/matlabcentral/fileexchange/47279-flip), MATLAB Central File Exchange. 检索时间: .

MATLAB 版本兼容性
创建方式 R2012b
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Arithmetic Operations 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
版本 已发布 发行说明
1.4.0.0

Fix documentation

1.3.0.0

use get values indices to perform flip instead of loop

1.2.0.0

use same condition for row and column vector

1.1.0.0

comment

1.0.0.0