Scilab 5.3.1
      
      - Ajuda Scilab
- Cadeias de Caracteres (Strings)
- ascii
- blanks
- code2str
- convstr
- emptystr
- eval
- evstr
- grep
- isalphanum
- isascii
- isdigit
- isletter
- isnum
- justify
- length
- part
- regexp
- sci2exp
- str2code
- strcat
- strchr
- strcmp
- strcmpi
- strcspn
- strindex
- string
- strings
- stripblanks
- strncpy
- strrchr
- strrev
- strsplit
- strspn
- strstr
- strsubst
- strtod
- strtok
- tokenpos
- tokens
- tree2code
Please note that the recommended version of Scilab is 2026.0.0. This page might be outdated.
However, this page did not exist in the previous stable version.
strcmpi
compara strings (caso independente)
Seqüência de Chamamento
res = strcmpi(string_one,string_two)
Parâmetros
- string_one
- string ou matriz de strings 
- string_two
- string ou matriz de strings 
- res
- matriz 
Descrição
res = strcmpi(string_one,string_two) retorna um
    valor inteiro indicando a relação entre os strings.
Um valor inteiro maior que zero indica que o primeiro caractere que
    não corresponde possui valor maior em string_one que em
    string_two
Um valor negativo indica o contrário.
Exemplos
TXT1 = ['scilab','SciLab';'Strcmp','STRcmp']; TXT2 = ['ScIlAb','sciLab';'sTrCmP','StrCMP']; strcmpi(TXT1,TXT2) strcmpi(TXT1,'scilab')
| << strcmp | Cadeias de Caracteres (Strings) | strcspn >> |