title: How to calculate Roll-off and Ripple (Stop-band/Pass-band) from a filter in MATLAB?
body: <p>I am facing difficulties in calculating Roll-off and Ripple (Stop-band/Pass-band) from a filter in MATLAB. Suppose I have an unknown vector of filter 'Filter1' which is 1x201 double. </p>
  
  <p>I have plotted its Fourier transform to find out its magnitude spectrum in frequency domain. From there I can conclude that whether the filter is "lowpass or bandpass or highpass". I have also found its frequency response using <code>[h,w] = freqz(hfilt)</code>.</p>
  
  <p>But I am not able to find out Roll-off and Ripple (Stop-band/Pass-band). Would anybody please help me with proper reading materials or right directions?</p>