error in using strcmp

15 ビュー (過去 30 日間)
Shanam Afzal
Shanam Afzal 2017 年 6 月 15 日
コメント済み: Shanam Afzal 2017 年 6 月 15 日
m getting this error in using strcmp/strcmpi:
need segmentation? YES/NO:yes Undefined function or variable 'strcpmi'.
Error in demo (line 15) if strcpmi(str, 'yes')
my code is as following:
str=input('need segmentation? YES/NO:', 's');
%str= input(prompt, 's');
if strcpmi(str, 'yes')
st=input('image contains different color object? Y/N:','s');
% st=input(prompt,'s');
%kmeans1();
% else
% trydelta();
end
What m i doing wrong here?? Also my code also doesnt display any messages when i use prompt or sprintf even there is no error

採用された回答

Adam
Adam 2017 年 6 月 15 日
You spelled the function name wrong (though managed to spell it correctly in your question tag!)
strcmpi
is what you need, not
strcpmi
  1 件のコメント
Shanam Afzal
Shanam Afzal 2017 年 6 月 15 日
thank you for noticing! @Adam

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeEntering Commands についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by