Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我希望能够在 Matlab 工作区中显示 M(1,:,:)、M(2,:,:) 等。但这仅显示 M(:,:,1)...
您可以尝试使用以下方法移动矩阵的尺寸:
permute(val, [3 1 2])
这实质上是旋转矩阵,使得第 3 维是第 1 维,第 1 维是第 2 维,第 2 维是第 3 维。