To allocate character array='2a'
1 次查看(过去 30 天)
显示 更早的评论
AE(32,10)='2a';
This is on error
2 个评论
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.
回答(1 个)
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.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Multidimensional Arrays 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!