To allocate character array='2a'

조회 수: 2 (최근 30일)
dmfwlansejr
dmfwlansejr 2021년 7월 7일
댓글: dmfwlansejr 2021년 7월 7일
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일
'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.

카테고리

Help CenterFile Exchange에서 Multidimensional Arrays에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by