필터 지우기
필터 지우기

Matlab Upsample Filter Object

조회 수: 2 (최근 30일)
Morgan
Morgan 2015년 9월 22일
답변: Puneet Rana 2015년 11월 6일
We can create Matlab filter objects using `fdesign` then `design`
TW = 0.25; % Transition Width (1/8 pass band)
Astop = 40 ; % Stopband Attenuation (dB)
h = fdesign.interpolator(2, 'Halfband', 'Type', 'Lowpass', 'tw,ast',TW,Astop);
Hd = design(h, 'ellip');
fvtool(Hd)
How do we create a matlab filter object which just does zero insertion? The filter object equivalent of upsample, which operates on data.
NB: Sample and Hold can be modelled with a first order CIC.

채택된 답변

Puneet Rana
Puneet Rana 2015년 11월 6일
Hi Morgan,
You can do this by setting Numerator of interpolator to [1,0]. For example, using the dsp.FIRInterpolator System object:
>> interp = dsp.FIRInterpolator;
>> interp.InterpolationFactor = 2;
>> interp.Numerator = [1,0];
>> x = (1:5)';
>> step(interp, x)
ans =
1
0
2
0
3
0
4
0
5
0

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Multirate and Multistage Filters에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by