create a cell array with incrementing values
4 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Elysi Cochin
el 3 de Abr. de 2019
Editada: madhan ravi
el 3 de Abr. de 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
0 comentarios
Respuesta aceptada
madhan ravi
el 3 de Abr. de 2019
regexp(cellstr(sprintf('a%d ',1:25)),' ','split')
1 comentario
madhan ravi
el 3 de Abr. de 2019
Editada: madhan ravi
el 3 de Abr. de 2019
Another option:
sprintfc('a%d',1:25) % beware, undocumented!
Más respuestas (0)
Ver también
Categorías
Más información sobre Multidimensional Arrays en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!