MATLAB ヘルプ センター
指定した値が DataSpecification オブジェクトの値の領域に含まれているかどうかの判別
DataSpecification
bool = contains(dataspec, value)
bool = contains(dataspec, value) は、fixed.DataSpecification オブジェクト dataspec の値の領域に、値 value が含まれているかどうかを示すブール値を返します。
bool
dataspec
value
fixed.DataSpecification
例
すべて折りたたむ
関数 contains を使用して、指定した値が fixed.DataSpecification オブジェクトに含まれているかどうかを判別します。
contains
dataspec = fixed.DataSpecification('int8', 'Intervals', {-1,1})
dataspec = fixed.DataSpecification with properties: DataTypeStr: 'int8' Intervals: [-1,1] MandatoryValues: <empty> Complexity: 'real' Dimensions: 1
dataspec に値 0 が含まれているかどうかを判別します。
bool = contains(dataspec, 0)
bool = logical 1
入力 fixed.DataSpecification オブジェクト。
fixed.DataSpecification オブジェクトでチェックする値。スカラーまたはベクトルとして指定します。
データ型: single | double | int8 | int16 | int32 | int64 | uint8 | uint16 | uint32 | uint64 | fi
single
double
int8
int16
int32
int64
uint8
uint16
uint32
uint64
fi
fixed.DataSpecification オブジェクトに値が含まれているかどうか。ブール値として返されます。
value 引数がベクトルの場合、出力は同じ長さのブール ベクトルです。
R2019b で導入
fixed.DataSpecification | applyOnRootInport
applyOnRootInport
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 のサイトは、お客様の地域からのアクセスが最適化されていません。
南北アメリカ
ヨーロッパ
アジア太平洋地域
最寄りの営業オフィスへのお問い合わせ