getUniqueValues
説明
は、data
= getUniqueValues(datagenerator
)fixed.DataGenerator
オブジェクト datagenerator
によって生成されるデータの一意の値をすべて返します。
例
DataGenerator
オブジェクトからのデータにある一意の値の取得
fixed.DataGenerator
オブジェクトから生成されたデータで、繰り返しの値がある可能性があります。関数 getUniqueValues
を使用して、データセット内のすべての一意の値を取得します。
dataspec = fixed.DataSpecification('fixdt(1,16,13)',... 'Intervals', {-1,1})
dataspec = fixed.DataSpecification with properties: DataTypeStr: 'sfix16_En13' Intervals: [-1,1] MandatoryValues: <empty> Complexity: 'real' Dimensions: 1
datagen = fixed.DataGenerator('DataSpecifications', dataspec,... 'NumDataPointsLimit', 20); getUniqueValues(datagen)
ans = -1.0000 -0.9999 -0.4999 -0.2500 -0.0624 -0.0313 -0.0039 -0.0021 -0.0005 -0.0002 0 0.0010 0.0018 0.0078 0.0155 0.0157 0.1249 0.1251 0.9999 1.0000 DataTypeMode: Fixed-point: binary point scaling Signedness: Signed WordLength: 16 FractionLength: 13
入力引数
datagenerator
— 入力 fixed.DataGenerator
オブジェクト
fixed.DataGenerator
オブジェクト
一意の値の取得元となる入力 fixed.DataGenerator
オブジェクト。
出力引数
data
— データ内の一意の値のセット
スカラー | ベクトル | 行列
入力 fixed.DataGenerator
オブジェクトで生成された一意のデータのセット。スカラー、ベクトルまたは行列として返されます。
バージョン履歴
R2019b で導入
MATLAB コマンド
次の MATLAB コマンドに対応するリンクがクリックされました。
コマンドを MATLAB コマンド ウィンドウに入力して実行してください。Web ブラウザーは MATLAB コマンドをサポートしていません。
Select a Web Site
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:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)