To allocate character array='2a'

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

댓글 수: 2

Stephen23
Stephen23 2021년 7월 7일
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 2021년 7월 7일
Yes I have on Answer
So I duplicate!

댓글을 달려면 로그인하십시오.

답변 (1개)

James Tursa
James Tursa 2021년 7월 7일

0 개 추천

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

카테고리

도움말 센터File Exchange에서 Characters and Strings에 대해 자세히 알아보기

질문:

2021년 7월 7일

댓글:

2021년 7월 7일

Community Treasure Hunt

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

Start Hunting!

Translated by