How do you calculate this transfer function?
5 views (last 30 days)
Dear friends I'm trying to make a filter for sound processing in matlab The transfer function is
I have written this in matlab but seems not to work properly
Do you think it's right?
Honglei Chen on 12 Sep 2014
You can use 1i for sqrt(-1) but mainly you need to set your w correctly, right now your step size is pi/(2*Fs). It could work but I don't know if that's what you want. Normally people decides the number of samples between 0 and pi as N and then the step size is pi/N, or pi/(N-1).
mohammad on 12 Sep 2014
Edited: mohammad on 12 Sep 2014
first use approximation function instead of exponential: e^x = (1+(x/N))^N second instead of 'jω' use 's' and use 'tf' command. so you have (for N=1): H=αjω.*exp(-βjω)=αjω/(1+(βjω)) now you have: H=(α*s)/(1+β*s)
for plotting bode diagram use 'bodeplot'.