How to name variable in each incremental loop?..

Hi I want to name variable in each loop.I tried using 3-D matrix to avoid naming, but Matlab takes much longer time to solve 3-D matrix.I have more than 4 or 5 for loop. If have to use N-D matrix , it will take much longer than 3-D matrix.It seems like the solution will take more than weeks..Please suggest me some ideas.Thanks in advance.. for example
for r=1:10:100
for w=1:10:100
matrix_w_r=(expresion)
end
end
Output:
matrix_1_1=value
.
.
.
.
.
matrrix_100_100=value

 採用された回答

Oleg Komarov
Oleg Komarov 2011 年 6 月 27 日

3 投票

Don't do that: faq 4.6 (read till the end).

1 件のコメント

puru
puru 2011 年 6 月 27 日
thanks...you are a lifesaver....

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeMatrix Indexing についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by