create a cell array with incrementing values

12 views (last 30 days)
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

Accepted Answer

madhan ravi
madhan ravi on 3 Apr 2019
  1 Comment
madhan ravi
madhan ravi on 3 Apr 2019
Edited: madhan ravi on 3 Apr 2019
Another option:
sprintfc('a%d',1:25) % beware, undocumented!

Sign in to comment.

More Answers (0)

Categories

Find more on Multidimensional Arrays in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!