split the 132x10 cells into 1x10 arrays
1 次查看(过去 30 天)
显示 更早的评论
Hello everyone, I need to seek your guidance on how to split 132x10 cells into 1x10 arrays
This is important because in the next steps I need to compute the number of occurrences for each arrays.Thanks in advanced.
采纳的回答
KSSV
2017-8-8
nx = 1320 ; ny = 10 ;
%%Make a random data
A = cell(nx,ny) ;
for i = 1:nx
for j = 1:ny
A{i,j} = rand ;
end
end
%%split into 1x10 cell arrays
iwant = cell(nx,1) ;
for i = 1:nx
iwant{i,:} = [A{i,:}] ;
end
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Matrices and Arrays 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!