how to name a matrix in a FOR loop ?

hello,
Since I am not an experienced user, I asked my question hereby,
In a for loop I have named a matrix as'TT'. for i=1:10; I would like to have matrices having names TT1, TT2... TT10.
how to solve this problem ?

Answers (1)

Image Analyst
Image Analyst on 8 Jul 2013

3 Comments

@Nuh,
The lesson to be drawn from the link from Image Analyst is that this is a bad idea. Why do you want to generate these particular matrices? Why is working with TT not sufficient?
Or in other words: Don't do this. Use the array TT(1), TT(2), ... instead.
@Jan Simon: Yes it's right

Sign in to comment.

Categories

Find more on Loops and Conditional Statements in Help Center and File Exchange

Asked:

on 8 Jul 2013

Community Treasure Hunt

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

Start Hunting!