You would have to use cell arrays for that, and store in to a{1}, a{2} and so on. Notice the use of {} instead of () .
Proceeding this way is not necessarily efficient: sometimes you are better using a multi-dimensional numeric array.
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!