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

 Accepted Answer

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

More Answers (0)

Categories

Find more on Debugging and Improving Code in Help Center and File Exchange

Products

Release

R2016a

Asked:

on 15 Feb 2019

Commented:

on 15 Feb 2019

Community Treasure Hunt

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

Start Hunting!