输入
-------
a = a n x m矩阵(真实或复杂)
输出
---------
y = an(1 x(n * m))矢量,其中包含螺旋顺序的拍摄元素。
兼容性
--------------------------
MATLAB 7.2及以后
笔记
---------------
此功能利用函数matrix_perimeter.m
例子
----------------
>> a =魔术(5)
a =
17 24 1 8 15
23 5 7 14 16
4 6 13 20 22
10 12 19 21 3
11 18 25 2 9
>> X = Spiral_Decomp(a)
x =
第1至14列
17 24 1 8 15 16 22 3 9 2 25 18 11 10
第15至25列
4 23 5 7 14 20 21 19 12 6 13
引用为
Athanasios Makris(2022)。Spiral_decomp(//www.tianjin-qmedu.com/matlabcentral/fileexchange/25130-spiral_decomp),matlab中央文件交换。检索。