How do I change the array of 200x2x100 to 100x2x200?

1 次查看(过去 30 天)
In Python, I use "np.transpose" code, but I don't know how to use it on Matlab..

采纳的回答

Subhadeep Koley
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)
ans = 1×3
200 2 100
size(newData)
ans = 1×3
100 2 200

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Call Python from MATLAB 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by