Okay here is the explaination
Let's say that you have a cell Array A which contains a cell array inside it ,it has dimension from 1 to 100 you can change it to your size of array.
Now I have just looped through the array A and for each element of array A which is A{i} checked it's size and then stored that cell in b array .
Hope this helps
A = cell(1,100);
A{4} = cell(1,20);
A{5} = cell(1,33);
A{6} = cell(1,20);
A{7} = cell(1,20);
b = [];
for i = 1:100
[row col] = size(A{i});
if row == 1 & col == 20
b = [b A{i}];
end
end
2 Comments
Direct link to this comment
https://fr.mathworks.com/matlabcentral/answers/468022-extract-cell-with-number-lines-and-columns#comment_716563
Direct link to this comment
https://fr.mathworks.com/matlabcentral/answers/468022-extract-cell-with-number-lines-and-columns#comment_716563
Direct link to this comment
https://fr.mathworks.com/matlabcentral/answers/468022-extract-cell-with-number-lines-and-columns#comment_716577
Direct link to this comment
https://fr.mathworks.com/matlabcentral/answers/468022-extract-cell-with-number-lines-and-columns#comment_716577
Sign in to comment.