error in using strcmp
11 次查看(过去 30 天)
显示 更早的评论
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
0 个评论
采纳的回答
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
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Entering Commands 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!