median no longer support uint8
조회 수: 1 (최근 30일)
이전 댓글 표시
In matlab 2012a, why the median function doesn't support any more data types other than single or double?
2010b:
median(uint8([1 2 3]))
ans =
2
2012a:
median(uint8([1 2 3]))
Error using median (line 28)
First input must be single or double.
After all, median is defined for any data type...
댓글 수: 0
답변 (1개)
Image Analyst
2012년 10월 14일
The simple fix/workaround is
output = median(single(yourUint8Data));
If that's going to be a problem for you then put in a feature request with the Mathworks.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Matrices and Arrays에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!