single
デジタル フィルターの係数を単精度にキャスト
説明
例
倍精度および単精度のローパス FIR フィルター
designfilt
を使用して 5 次の FIR ローパス フィルターを設計します。正規化された通過帯域周波数 ラジアン/サンプルおよび正規化された阻止帯域周波数 ラジアン/サンプルを指定します。フィルターの係数を単精度にキャストします。
format long d = designfilt('lowpassfir','FilterOrder',5, ... 'PassbandFrequency',0.2,'StopbandFrequency', 0.55); e = single(d); classd = class(d.Coefficients)
classd = 'double'
classe = class(e.Coefficients)
classe = 'single'
入力引数
f1
— デジタル フィルター
digitalFilter
オブジェクト
デジタル フィルター。digitalFilter
オブジェクトで指定します。f1
を周波数応答仕様に基づいて生成するには、関数 designfilt
を使用します。
例: d = designfilt('lowpassiir','FilterOrder',3,'HalfPowerFrequency',0.5)
は、正規化された 3 dB の周波数 0.5π ラジアン/サンプルをもつ 3 次のバタワース フィルターを指定します。
出力引数
f2
— 単精度のデジタル フィルター
digitalFilter
オブジェクト
単精度のデジタル フィルター。digitalFilter
オブジェクトとして返されます。
バージョン履歴
R2014a で導入
参考
designfilt
| digitalFilter
| double
| isdouble
| issingle
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)