用shiftdim
a=rand(1,3,4);
shiftdim(a)ans =
0.8369 0.4770 0.8854 0.6469
0.4639 0.1345 0.5797 0.7275
0.3123 0.7686 0.8713 0.7841
本文展示了如何使用Matlab中的shiftdim函数来调整数组维度的一个具体实例。通过对一个三维数组进行操作,直观地说明了该函数的功能。
用shiftdim
a=rand(1,3,4);
shiftdim(a)转载于:https://my.oschina.net/duluo180/blog/14459
1万+
2013

被折叠的 条评论
为什么被折叠?