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

10 ビュー (過去 30 日間)
Zeynab Mousavikhamene
Zeynab Mousavikhamene 2020 年 7 月 2 日
回答済み: madhan ravi 2020 年 7 月 2 日
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 Center および File ExchangeCell Arrays についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by