create a cell array with incrementing values

how to create a cell with values like
a1 a2 a3 a4 a5 ........ a25
i need to get the above values into a row cell array and column cell array
do i need for loop or is there a simple way

 採用された回答

madhan ravi
madhan ravi 2019 年 4 月 3 日

1 投票

1 件のコメント

madhan ravi
madhan ravi 2019 年 4 月 3 日
編集済み: madhan ravi 2019 年 4 月 3 日
Another option:
sprintfc('a%d',1:25) % beware, undocumented!

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeData Types についてさらに検索

タグ

質問済み:

2019 年 4 月 3 日

編集済み:

2019 年 4 月 3 日

Community Treasure Hunt

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

Start Hunting!

Translated by