How to convert 32x32x2x20000 into 20000x1 cell array?
2 次查看(过去 30 天)
显示 更早的评论
How to convert 32x32x2x20000 into 20000x1 cell array, I got a data from the output of a cnn network and i would llike to convert the 32x32x2x20000 into 20000x1 cell array and in each cell has the 32x32x2 data. Deos anyone can help, Thank you !
0 个评论
采纳的回答
per isakson
2021-9-5
编辑:per isakson
2021-9-5
A mat2cell example
%%
M = ones(32,32,2,6); % Sample data (20000 replaced by 6)
C = mat2cell( M, 32, 32, 2, ones(1,6) );
%%
C = squeeze( C );
C
0 个评论
更多回答(2 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Data Type Conversion 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!