Why is the scaling of high pass filters in FVTOOL not displaying the whole response?

Illustration
yun-hun-jmai - 2021-03-22T15:31:27+00:00
Question: Why is the scaling of high pass filters in FVTOOL not displaying the whole response?

I perform the following code for a low pass filter and the response shown in FVTOOL displays a large range for the filter.     [a b] = butter(2, 0.01, 'low'); fvtool(a, b); However, when I use FVTOOL for a high pass filter, the range in the y-axis is much shorter. [a b] = butter(2, 0.1, 'high'); fvtool(a, b);

Expert Answer

Profile picture of Neeta Dsouza Neeta Dsouza answered . 2025-11-20

FVTool auto-scales graphs and forces tighter limits for filters based on their shape. You can use any one of the following workarounds to see the full plot:
 
1. Click on the View menu option and select 'Full View'.
2. Manually setting the axis to have a larger range.
3. Use the following code to automatically display a larger range for the filter:
[a b] = butter(2, 0.1, 'high');

[h,w]=freqz(a,b);

h=10*log(abs(h));

w=w/max(w);

plot(w,h);


Not satisfied with the answer ?? ASK NOW

Get a Free Consultation or a Sample Assignment Review!