Matlab Upsample Filter Object
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Morgan
le 22 Sep 2015
Réponse apportée : Puneet Rana
le 6 Nov 2015
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.
0 commentaires
Réponse acceptée
Puneet Rana
le 6 Nov 2015
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 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Filter Design dans Help Center et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!