How to make multiple strings arrays of repeating word and number?

10 次查看(过去 30 天)
I need to make an array that is like this:
["var1","var2","var3",...,"var18"]
the size of the array may change (larger or smaller than 18). How can I do that sytematically (not repeating or wiritng each individual array member)?

采纳的回答

madhan ravi
madhan ravi 2020-7-2
n = 18;
"var" + (1:n)

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Cell Arrays 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by