create a cell array with incrementing values

11 Ansichten (letzte 30 Tage)
Elysi Cochin
Elysi Cochin am 3 Apr. 2019
Bearbeitet: madhan ravi am 3 Apr. 2019
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

Akzeptierte Antwort

madhan ravi
madhan ravi am 3 Apr. 2019
  1 Kommentar
madhan ravi
madhan ravi am 3 Apr. 2019
Bearbeitet: madhan ravi am 3 Apr. 2019
Another option:
sprintfc('a%d',1:25) % beware, undocumented!

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Multidimensional Arrays finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by