资料参考来源:
https://blog.csdn.net/weixin_42072280/article/details/80306966
1.A( : );
表示将A的每个列向量合并成新的列向量
>> A = rand(2,3)A =0.6925 0.3965 0.78020.5567 0.0616 0.3376>> B = A(:)B =0.69250.55670.39650.06160.78020.3376
![在这里插入图片描述](https://img8.php1.cn/3cdc5/129c0/78c/7993fca18aefa48f.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L2ppZXlhbm5u,size_16,color_FFFFFF,t_70)
2.B = reshape(A,m,n);
作用:将A矩阵变成m×n的矩阵B。处理时是对A逐列逐列处理