ドキュメンテーションヘルプ センター
最新のリリースでは、このページがまだ翻訳されていません。 このページの最新版は英語でご覧になれます。
入力が string 配列かどうかを判別
tf = isstring(A)
例
tf = isstring(A) は A が string 配列である場合 1 (true) を返します。それ以外の場合は 0 (false) を返します。
A
1
true
0
false
すべて折りたたむ
さまざまな配列を作成し、それらが string 配列であるかどうかを判別します。
文字ベクトルをテストします。
chr = 'Mary Jones'
tf = isstring(chr)
tf = logical 0
文字ベクトルは string ではないため、isstring は 0 を返します。
isstring
string 配列をテストします。R2017a 以降、二重引用符を使用して string を作成できるようになりました。
str = ["Smith","Chung","Morales"; ... "Sanchez","Peterson","Adams"]
str = 2x3 string "Smith" "Chung" "Morales" "Sanchez" "Peterson" "Adams"
tf = isstring(str)
tf = logical 1
str は string 配列であるため、isstring は 1 を返します。
str
入力配列。スカラー、ベクトル、行列または多次元配列として指定します。A には任意のデータ型を使用できます。
この関数は分散配列を完全にサポートしています。詳細については、分散配列を使用した MATLAB 関数の実行 (Parallel Computing Toolbox)を参照してください。
cellstr | char | is* | isa | iscategorical | iscell | iscellstr | ischar | isStringScalar | isstrprop | isstruct | istable | string
cellstr
char
is*
isa
iscategorical
iscell
iscellstr
ischar
isStringScalar
isstrprop
isstruct
istable
string
この例の変更されたバージョンがシステム上にあります。代わりにこのバージョンを開きますか?
次の MATLAB コマンドに対応するリンクがクリックされました。
コマンドを MATLAB コマンド ウィンドウに入力して実行してください。Web ブラウザーは MATLAB コマンドをサポートしていません。
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office