MATLAB: Generating a series of marices

loopsmatrix array

Basically, I'm trying to read a large matrix and then break that into a series of arrays. I was attempting something of the nature.
for i= 1:size(a,1)
m_i = a(i, 1:size(a,2)
end
and I want to get back
m_1 = [….] m_2 = […..] m_3 = [….]
any help on what actual command to use would very helpful. Thanks

Best Answer

m=cell(size(a,1),1);
for k=1:size(a,1)
m{k}=a(k,:);
end