MATLAB: Extraction of 45×16 matrices from a 1×309 cell

.arraycellmatrices

Hello everyone.
I'm having trouble upon a 1×309 cell from which i need to extract each 45x16double contained in the cells and save it in order to use it later. Is there a simple way to do it? Thanks a lot.

Best Answer

Result=cell(1,309); % preallocate %% 309 denotes number of mycells (cells you have in your data) which is numel(mycells)
for i = 1:309
Result{i}=mycells{i}(1:45,1:16);
end
celldisp(Result)
[Result{:}] %double array , horizontally concatenated
vertcat(Result{:}) %double array , vertically concatenated