MATLAB ヘルプ センター
このページの内容は最新ではありません。最新版の英語を参照するには、ここをクリックします。
入力が boolean かどうかを判別
tf = isboolean(a)
tf = isboolean(T)
tf = isboolean(a) は fi オブジェクト a の DataType プロパティが Boolean である場合に 1 (true) を返します。それ以外の場合は 0 (false) を返します。
a
fi
DataType
Boolean
1
true
0
false
例
tf = isboolean(T) は numerictype オブジェクト T の DataType プロパティが Boolean である場合に 1 (true) を返します。それ以外の場合は 0 (false) を返します。
T
numerictype
すべて折りたたむ
fi オブジェクトを作成し、そのデータ型が Boolean であるかどうかを判別します。
a = fi(pi)
a = 3.1416 DataTypeMode: Fixed-point: binary point scaling Signedness: Signed WordLength: 16 FractionLength: 13
tf = logical 0
a = fi(pi,'DataType','Boolean')
a = 1 DataTypeMode: Boolean
tf = logical 1
numerictype オブジェクトを作成し、そのデータ型が Boolean であるかどうかを判別します。
T = numerictype
T = DataTypeMode: Fixed-point: binary point scaling Signedness: Signed WordLength: 16 FractionLength: 15
T = numerictype('Boolean')
T = DataTypeMode: Boolean
入力 fi オブジェクト。スカラー、ベクトル、行列または多次元配列として指定します。
データ型: fi
入力 numerictype オブジェクト。スカラーとして指定します。
R2008a で導入
isdouble | isfixed | isfloat | isscaleddouble | isscalingbinarypoint | isscalingslopebias | isscalingunspecified | issingle
isdouble
isfixed
isfloat
isscaleddouble
isscalingbinarypoint
isscalingslopebias
isscalingunspecified
issingle
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Web サイトの選択
Web サイトを選択すると、翻訳されたコンテンツにアクセスし、地域のイベントやサービスを確認できます。現在の位置情報に基づき、次のサイトの選択を推奨します:
また、以下のリストから Web サイトを選択することもできます。
最適なサイトパフォーマンスの取得方法
中国のサイト (中国語または英語) を選択することで、最適なサイトパフォーマンスが得られます。その他の国の MathWorks のサイトは、お客様の地域からのアクセスが最適化されていません。
南北アメリカ
ヨーロッパ
アジア太平洋地域
最寄りの営業オフィスへのお問い合わせ