create a cell array with incrementing values
11 ビュー (過去 30 日間)
古いコメントを表示
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
0 件のコメント
採用された回答
madhan ravi
2019 年 4 月 3 日
regexp(cellstr(sprintf('a%d ',1:25)),' ','split')
1 件のコメント
madhan ravi
2019 年 4 月 3 日
編集済み: madhan ravi
2019 年 4 月 3 日
Another option:
sprintfc('a%d',1:25) % beware, undocumented!
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Multidimensional Arrays についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!