How do I change the array of 200x2x100 to 100x2x200?
2 次查看(过去 30 天)
显示 更早的评论
In Python, I use "np.transpose" code, but I don't know how to use it on Matlab..
0 个评论
采纳的回答
Subhadeep Koley
2021-4-28
编辑:Subhadeep Koley
2021-4-28
% Generate demo data
data = rand(200, 2, 100);
% Permute the data
newData = permute(data, [3 2 1]);
size(data)
size(newData)
0 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Call Python from MATLAB 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!