+ Post New Thread
Results 1 to 2 of 2
  1. #1
    Member level 2
    Points: 1,286, Level: 8

    Join Date
    Feb 2007
    Posts
    42
    Helped
    0 / 0
    Points
    1,286
    Level
    8

    Calculate the gain in matlab

    hi all,

    Can anyone explain how to calculate the gain of a filter in matlab. I can simulate the filter using fdatool and it tells me the gain. However i cannot manually calculate the gain via the results viewer.

    Its an iir filter and i have coefficients / transfer fucntion etc.

    Thank you

    Andy

    •   Alt29th March 2007, 15:18

      advertising

        
       

  2. #2
    Junior Member level 3
    Points: 1,490, Level: 8

    Join Date
    Aug 2005
    Posts
    26
    Helped
    3 / 3
    Points
    1,490
    Level
    8

    Re: Calculate the gain in matlab

    If u have coefficients a and b den use [H,W]=freqz(b,a,....) built in function of MATLAB. Plot abs(H) against W because you have to compute gain at each frequency W



+ Post New Thread
Please login