how to name a matrix in a FOR loop ?
Show older comments
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
on 8 Jul 2013
0 votes
3 Comments
Matt Kindig
on 9 Jul 2013
@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?
Jan
on 9 Jul 2013
Or in other words: Don't do this. Use the array TT(1), TT(2), ... instead.
Octa
on 10 Jul 2013
@Jan Simon: Yes it's right
Categories
Find more on Loops and Conditional Statements in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!