필터 지우기
필터 지우기

how can i compare two things simultaneous

조회 수: 1 (최근 30일)
fatemeh
fatemeh 2013년 12월 30일
편집: Walter Roberson 2013년 12월 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'.

답변 (1개)

Image Analyst
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.

카테고리

Help CenterFile Exchange에서 Characters and Strings에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by