create a cell array with incrementing values
4 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Elysi Cochin
le 3 Avr 2019
Modifié(e) : madhan ravi
le 3 Avr 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 commentaires
Réponse acceptée
madhan ravi
le 3 Avr 2019
regexp(cellstr(sprintf('a%d ',1:25)),' ','split')
1 commentaire
madhan ravi
le 3 Avr 2019
Modifié(e) : madhan ravi
le 3 Avr 2019
Another option:
sprintfc('a%d',1:25) % beware, undocumented!
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Multidimensional Arrays dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!