undefined function or method 'unit8' for input argument of type 'double'
Ältere Kommentare anzeigen
undefined function or method 'unit8' for input argument of type 'double'
Antworten (1)
Steven Lord
am 21 Aug. 2015
1 Stimme
To convert to an unsigned 8 bit integer use "uint8" not "unit8". Note the difference in spelling.
3 Kommentare
John D'Errico
am 21 Aug. 2015
Bearbeitet: John D'Errico
am 21 Aug. 2015
I've seen this error many times in questions, including this same error made by me. My guess is that the fingers (and your brain) automatically want to type the word unit, not uint.
Sean de Wolski
am 21 Aug. 2015
Bearbeitet: Sean de Wolski
am 21 Aug. 2015
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
am 21 Aug. 2015
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 :(
Kategorien
Mehr zu Convert Image Type finden Sie in Hilfe-Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!