To allocate character array='2a'

AE(32,10)='2a';
This is on error

2 comentarios

Stephen23
Stephen23 el 7 de Jul. de 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.
dmfwlansejr
dmfwlansejr el 7 de Jul. de 2021
Yes I have on Answer
So I duplicate!

Iniciar sesión para comentar.

Respuestas (1)

James Tursa
James Tursa el 7 de Jul. de 2021

0 votos

'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.

Categorías

Más información sobre Characters and Strings en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 7 de Jul. de 2021

Comentada:

el 7 de Jul. de 2021

Community Treasure Hunt

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

Start Hunting!

Translated by