To allocate character array='2a'
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
AE(32,10)='2a';
This is on error
2 commentaires
Stephen23
le 7 Juil 2021
Original question (basically duplicate):
Note to @sadasd asasdas: please do not keep asking the same question. Clarify or ask for more information in your existing question.
Réponses (1)
James Tursa
le 7 Juil 2021
'2a' is a two element character string. You can't assign two elements to a single element. I.e., you can't assign a 1x2 vector to a 1x1 element spot.
0 commentaires
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!