Mercurial > hg > ishara
view arrows/dsp/aresample.m @ 6:0ce3c2070089
Removed duplicate code and fixed doc in timed_action.
author | samer |
---|---|
date | Mon, 14 Jan 2013 14:33:37 +0000 |
parents | 672052bd81f8 |
children |
line wrap: on
line source
function a=aresample(f1,f2) f0=gcd(f1,f2); p=f2/f0; q=f1/f0; %[y,num]=resample(zeros(16,1),p,q); num=get(mfilt.firsrc(p,q),'Numerator'); % design resampling filter using mfilt a=asysobj(@(sz)dsp.FIRRateConverter(p,q,num),1,1,@(sz){[sz{1}(1)*f2/f1,sz{1}(2)]});