double
디지털 필터의 계수를 배정밀도로 형변환하기
설명
예제
단정밀도 및 배정밀도의 저역통과 FIR 필터
designfilt
를 사용하여 5차 FIR 저역통과 필터를 설계합니다. 정규화된 통과대역 주파수를 rad/sample로, 정규화된 저지대역 주파수를 rad/sample로 지정합니다.
필터를 단정밀도로 형변환했다가 다시 배정밀도로 형변환합니다. 각 필터의 첫 번째 계수를 표시합니다.
format long d = designfilt('lowpassfir','FilterOrder',5, ... 'PassbandFrequency',0.2,'StopbandFrequency', 0.55); e = single(d); f = double(e); coed = d.Coefficients(1)
coed = 0.003947882145754
coee = e.Coefficients(1)
coee = single
0.0039479
coef = f.Coefficients(1)
coef = 0.003947881981730
double
을 사용하여 필터 계수의 단정밀도 양자화 효과를 배정밀도로 분석합니다.
입력 인수
f1
— 단정밀도 디지털 필터
digitalFilter
객체
단정밀도 디지털 필터로, digitalFilter
객체로 지정됩니다. designfilt
를 사용하여 주파수 응답 사양을 기반으로 디지털 필터를 생성하고 single
을 사용하여 생성된 필터를 단정밀도로 형변환합니다.
예: f1= single(designfilt('lowpassfir','FilterOrder',3,'HalfPowerFrequency',0.5))
는 단정밀도로 형변환된 0.5π rad/sample의 정규화된 3dB 주파수를 갖는 3차 버터워스 필터를 지정합니다.
출력 인수
f2
— 배정밀도 디지털 필터
digitalFilter
객체
배정밀도 디지털 필터로, digitalFilter
객체로 반환됩니다.
버전 내역
R2014a에 개발됨
참고 항목
designfilt
| digitalFilter
| isdouble
| issingle
| single
MATLAB 명령
다음 MATLAB 명령에 해당하는 링크를 클릭했습니다.
명령을 실행하려면 MATLAB 명령 창에 입력하십시오. 웹 브라우저는 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)