Filter löschen
Filter löschen

To allocate character array='2a'

1 Ansicht (letzte 30 Tage)
dmfwlansejr
dmfwlansejr am 7 Jul. 2021
Kommentiert: dmfwlansejr am 7 Jul. 2021
AE(32,10)='2a';
This is on error
  2 Kommentare
Stephen23
Stephen23 am 7 Jul. 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 am 7 Jul. 2021
Yes I have on Answer
So I duplicate!

Melden Sie sich an, um zu kommentieren.

Antworten (1)

James Tursa
James Tursa am 7 Jul. 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.

Kategorien

Mehr zu Multidimensional Arrays finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by