Borrar filtros
Borrar filtros

how can i compare two things simultaneous

1 visualización (últimos 30 días)
fatemeh
fatemeh el 30 de Dic. de 2013
Editada: Walter Roberson el 30 de Dic. de 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'.

Respuestas (1)

Image Analyst
Image Analyst el 30 de Dic. de 2013
Editada: Image Analyst el 30 de Dic. de 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.

Categorías

Más información sobre Characters and Strings en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by