merge number and character
显示 更早的评论
hi, how i can merge this x=3 y='-'
when do z=[x y] i get z =
- this symbol is appearing as square in command of matlab i need the result be 3 - how get that?
thanks
采纳的回答
更多回答(1 个)
Kye Taylor
2012-5-4
If
x = 3; y = '-';
merge with
[num2str(x),y]
类别
在 帮助中心 和 File Exchange 中查找有关 Programming 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!