Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Using freqz and bilinear matlab

  1. Nov 3, 2011 #1
    I have made my analogue butterworth filter in matlab and am converting it to digital using bilinear with this code,

    Code (Text):

    [num,den] = butter(n,wc,'s');
    %  Compute and plot the frequency response
    omega = [0: 100: 12000*pi];
    h = freqz(numd,dend,omega);
    plot (omega/(2*pi),20*log10(abs(h)));
    xlabel('Frequency, Hz'); ylabel('Gain, dB');
    n and wc have been defined but I am getting a reall weird result and I don't know why, think it is because of omega, can anyone help ?
  2. jcsd
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook

Can you offer guidance or do you also need help?
Draft saved Draft deleted