Error ,not enough input arguments line 1

if ~(isa(seg, 'double') isa(seg, 'uint8')) fprintf('The image is not double or uint8. You may receive many warnings.\n'); fprintf('Cast your image to either before sending here.');

답변 (1개)

Julia
Julia 2014년 8월 6일
편집: Julia 2014년 8월 6일

0 개 추천

There is no ",", "&" or "|" between your if - arguments. Perhaps this causes the error. This works in the command window:
if ~(isa(pi, 'double') & isa(pi, 'uint8'))
fprintf('The image is not double or uint8. You may receive many warnings.\n');
fprintf('Cast your image to either before sending here.');
end
The image is not double or uint8. You may receive many warnings.
Cast your image to either before sending here.

카테고리

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

태그

질문:

2014년 8월 6일

편집:

2014년 8월 6일

Community Treasure Hunt

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

Start Hunting!

Translated by