undefined function or method 'unit8' for input argument of type 'double'
6 次查看(过去 30 天)
显示 更早的评论
undefined function or method 'unit8' for input argument of type 'double'
0 个评论
回答(1 个)
Steven Lord
2015-8-21
To convert to an unsigned 8 bit integer use "uint8" not "unit8". Note the difference in spelling.
3 个评论
Sean de Wolski
2015-8-21
编辑:Sean de Wolski
2015-8-21
I've done this at least high in the two digits, possibly low three digits number of times.
Though it looks like autocorrect picks up on it now :)

Why yes, I did!
Adam
2015-8-21
Yes, I have done that countless times too, although I always hit the up-arrow too quickly to correct my mistake before realising Matlab did it for me and then I can't retrieve the correction with a down-arrow again :(
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Data Type Conversion 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!