MATLAB Answers

To allocate character array='2a'

5 views (last 30 days)
dmfwlansejr
dmfwlansejr on 7 Jul 2021
Commented: dmfwlansejr on 7 Jul 2021
AE(32,10)='2a';
This is on error
  2 Comments
dmfwlansejr
dmfwlansejr on 7 Jul 2021
Yes I have on Answer
So I duplicate!

Sign in to comment.

Answers (1)

James Tursa
James Tursa on 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.

Community Treasure Hunt

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

Start Hunting!