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.');

Antworten (1)

Julia
Julia am 6 Aug. 2014
Bearbeitet: Julia am 6 Aug. 2014

0 Stimmen

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.

Kategorien

Mehr zu Images finden Sie in Hilfe-Center und File Exchange

Tags

Gefragt:

am 6 Aug. 2014

Bearbeitet:

am 6 Aug. 2014

Community Treasure Hunt

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

Start Hunting!

Translated by