create a cell array with incrementing values

12 ビュー (過去 30 日間)
Elysi Cochin
Elysi Cochin 2019 年 4 月 3 日
編集済み: madhan ravi 2019 年 4 月 3 日
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 件のコメント
madhan ravi
madhan ravi 2019 年 4 月 3 日
編集済み: madhan ravi 2019 年 4 月 3 日
Another option:
sprintfc('a%d',1:25) % beware, undocumented!

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMultidimensional Arrays についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by