i want to change [3,2,4](1x3 matrix) to 324(1x1 matrix) any help?
4 次查看(过去 30 天)
显示 更早的评论
i know i can do it by 3*100 + 2*20 + 4 but is there any cleaner method?
0 个评论
采纳的回答
更多回答(2 个)
Bruno Luong
2018-11-16
编辑:Bruno Luong
2018-11-16
This one produces NaN for overflowed data
>> polyval([3 2 4],10)
ans =
324
>> str2double(char([3 2 10]+'0'))
ans =
NaN
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Logical 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!