how can i compare two things simultaneous

5 Ansichten (letzte 30 Tage)
fatemeh
fatemeh am 30 Dez. 2013
Bearbeitet: Walter Roberson am 30 Dez. 2013
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'.

Antworten (1)

Image Analyst
Image Analyst am 30 Dez. 2013
Bearbeitet: Image Analyst am 30 Dez. 2013
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.

Kategorien

Mehr zu Characters and Strings finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by