Scilab Home page | Wiki | Bug tracker | Forge | Mailing list archives | ATOMS | File exchange
Please login or create an account
Change language to: English - Français - Português -

Please note that the recommended version of Scilab is 6.0.1. This page might be outdated.
See the recommended documentation of this function

Scilab help >> Strings > strcmpi

strcmpi

文字列を比較 (大文字小文字に依存)

呼び出し手順

res = strcmpi(string_one,string_two)

パラメータ

string_one

文字列または文字列の行列

string_two

文字列または文字列の行列

res

行列.

説明

res = strcmpi(string_one,string_two) は, 文字列の間の関係を示す内部的な値を返します.

0より大きな値は,一致しない最初の文字について, string_one の方が string_two よりも大きな値を有することを 示します.

ゼロより小さい値はその逆を示します.

TXT1 = ['scilab','SciLab';'Strcmp','STRcmp'];
TXT2 = ['ScIlAb','sciLab';'sTrCmP','StrCMP'];
strcmpi(TXT1,TXT2)
strcmpi(TXT1,'scilab')

参照

  • strcat — 文字列を結合する
  • strcmp — 文字列を比較

Comments


See comments in other languages: Русский: 1 comment(s)

Add a comment:
Please login to comment this page.

<< strcmp Strings strcspn >>

Scilab Enterprises
Copyright (c) 2011-2017 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Thu Mar 03 11:00:59 CET 2011