ython-repl">&gt;&gt;&gt; h = fir1(25,0.4);               # Window-based FIR filter design
&gt;&gt;&gt; flag_linphase = islinphase(h)   # Determines if filter is linear phase
&gt;&gt;&gt; hmin = polystab(h) * norm(h)/norm(polystab(h));
&gt;&gt;&gt; flag_minphase = isminphase(hmin)# Determines if filter is min phase
</code></pre></div>
<details class="source">
<summary>
<span>Expand source code</span>
</summary>
<pre><code class="python">def polystab(a):
    &#34;&#34;&#34;Polynomial stabilization.

    POLYS