naming of a variable
2 次查看(过去 30 天)
显示 更早的评论
how can i have a variable name to be as name1 name2 name3 upto namen. i can't use array for this. i want something like for i = 1:1:n namei = "something"; end
回答(1 个)
Guillaume
2016-7-26
" i can't use array for this."
There is absolutely zero upside and lots of downside in having sequential variable names. They're obviously related, so they should be grouped together in a container.
0 个评论
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!