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 ?

Antworten (1)

Image Analyst
Image Analyst am 8 Jul. 2013

0 Stimmen

3 Kommentare

Matt Kindig
Matt Kindig am 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
Jan am 9 Jul. 2013
Or in other words: Don't do this. Use the array TT(1), TT(2), ... instead.
Octa
Octa am 10 Jul. 2013
@Jan Simon: Yes it's right

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Loops and Conditional Statements finden Sie in Hilfe-Center und File Exchange

Gefragt:

am 8 Jul. 2013

Community Treasure Hunt

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

Start Hunting!

Translated by