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');
    [numd,dend]=bilinear(num,den,Fs)
    %  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
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

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



Similar Discussions: Using freqz and bilinear matlab
  1. MATLAB - using freqz (Replies: 8)

  2. 3D plot using Matlab (Replies: 1)

  3. SHO using MATLAB (Replies: 7)

Loading...