Adding matrices to a vector

1 view (last 30 days)
Vincent
Vincent on 3 Jan 2013
Hello,
I'm trying to add matrices to a vector, but it seems that Matlab doesn't really like that? It gives the following error: "in an assignment a(i) = b the number of elements in b and i must be the same."
I really need to store all the matrices because I need it afterwards to use them all.
is there another way to store all the matrices?

Accepted Answer

Walter Roberson
Walter Roberson on 3 Jan 2013
cell array.
a{i} = b;

More Answers (0)

Community Treasure Hunt

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

Start Hunting!