"Shani Gal" wrote in message <jmj0am$c3v$
1...@newscl01ah.mathworks.com>...
>
>
> is this the only way?
>
> A1 and A2 (also B1 and B2) are matrix of diffrent size, so it is not so simple to have A{i} etc..
===================
I don't see what's complicated. Different sized data is exactly what cell arrays are for:
>> A{1}=rand(2); A{2}=rand(3); A{3}='cats and dogs'
A =
[2x2 double] [3x3 double] 'cats and dogs'