Error ,not enough input arguments line 1

7 vues (au cours des 30 derniers jours)
nourah
nourah le 6 Août 2014
Modifié(e) : Julia le 6 Août 2014
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.');

Réponses (1)

Julia
Julia le 6 Août 2014
Modifié(e) : Julia le 6 Août 2014
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.

Catégories

En savoir plus sur Images dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by