undefined function or method 'unit8' for input argument of type 'double'

답변 (1개)

Steven Lord
Steven Lord 2015년 8월 21일

1 개 추천

To convert to an unsigned 8 bit integer use "uint8" not "unit8". Note the difference in spelling.

댓글 수: 3

John D'Errico
John D'Errico 2015년 8월 21일
편집: John D'Errico 2015년 8월 21일
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
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!
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 :(

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 Convert Image Type에 대해 자세히 알아보기

태그

질문:

2015년 8월 21일

댓글:

2015년 8월 21일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by