matlab存储矩阵时按照列存储,比如:
A =[1 2 3;4 5 6;7 8 9]
即:
A =
1 2 3
4 5 6
7 8 9
则A(:)=
1
4
7
2
5
8
3
6
9