CAT arguments dimensions are not consistent. in the cell array.

2 views (last 30 days)
Hi every one...
I have a cell array containing cell array like this
C =
{1x1 cell} {1x32 cell} {1x32 cell} {1x64 cell} {1x64 cell} {1x1 cell};
i have tried this function
x=cellfun(@cell2mat,C','UniformOutput',false);
i'm getting this error:CAT arguments dimensions are not consistent
however i came to know C(1,1) are same rows and columns but 2nd cell array containing 1row 32 columns of cell array if anyone the solution please let me know.
thanks in advance

Accepted Answer

Azzi Abdelmalek
Azzi Abdelmalek on 7 Dec 2012
Edited: Azzi Abdelmalek on 7 Dec 2012
Maybe you are looking for
C={num2cell(rand(1,3)),num2cell(rand(1,6))}
x=cell2mat(cellfun(@cell2mat,C,'Un',0))
  3 Comments
venkat vasu
venkat vasu on 8 Dec 2012
Hi Azzi Abdelmalek from your second code i got idea to extract the matrix thank you so much.

Sign in to comment.

More Answers (0)

Categories

Find more on Cell Arrays in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!