how can i compare two things simultaneous
1 回表示 (過去 30 日間)
古いコメントを表示
actually i want do this compare :
if ((ps{psize,pcol}==-1) | STRCOMP(ps{psize,pcol},sds{i,pcol})==1)
and matlab give me this error :
Undefined function 'STRCOMP' for input arguments of type 'char'.
0 件のコメント
回答 (1 件)
Image Analyst
2013 年 12 月 30 日
編集済み: Image Analyst
2013 年 12 月 30 日
There is no STRCOMP(). MATLAB is case sensitive. Use strcmp(), strcmpi(), or strfind(), or similar. Note there is no "o" in the function names. Also, you should probably use || rather than | in your "or" test.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Characters and Strings についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!