How can i increase the variabile name of each vector in for cycle? I want CM0_0, CM0_1, CM0_2...

 採用された回答

Jan
Jan 2019 年 2 月 15 日
編集済み: Jan 2019 年 2 月 15 日
Don't do this. Do not hide an index in the name of a variable. Use an array instead, e.g.:
CM0{1}, CM0{2}, CM0{3}
See this famous thread: TUTORIAL: How and why to avoid Eval

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeDebugging and Improving Code についてさらに検索

製品

リリース

R2016a

質問済み:

2019 年 2 月 15 日

コメント済み:

2019 年 2 月 15 日

Community Treasure Hunt

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

Start Hunting!

Translated by