matrix dimensions are not equal
显示 更早的评论
how to make two cells (having strings as elements) of different dimensions equal?
回答(1 个)
KSSV
2020-10-19
Read about strcat. If str is your string of size 1*2...to append zero at tne end use:
iwant1 = strcat(str,'0') % option 1
iwant2 = [str,'0'] % option 2
2 个评论
Jetty Rakesh Aditya
2020-10-19
KSSV
2020-10-19
You can use strcat for cells also.
str{1} = 'MA' ;
str{2} = 'LA' ;
iwant = strcat(str,'0')
类别
在 帮助中心 和 File Exchange 中查找有关 Operators and Elementary Operations 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!