Mercurial > hg > octave-nkf
diff scripts/signal/freqz_plot.m @ 4422:92be67bc9301
[project @ 2003-06-04 17:43:15 by jwe]
author | jwe |
---|---|
date | Wed, 04 Jun 2003 17:43:15 +0000 |
parents | 8aa604426d35 |
children | 2b4e706ff011 |
line wrap: on
line diff
--- a/scripts/signal/freqz_plot.m +++ b/scripts/signal/freqz_plot.m @@ -41,25 +41,19 @@ ## Protect graph state. - if (gnuplot_has_multiplot) - subplot (311); - gset lmargin 10; - axis ("labely"); - xlabel (""); - endif + subplot (311); + gset lmargin 10; + axis ("labely"); + xlabel (""); grid ("on"); axis ([ w(1), w(n), maxmag-3, maxmag ]); plot (w, mag, ";Pass band (dB);"); - if (gnuplot_has_multiplot) - subplot (312); - axis ("labely"); - title (""); - xlabel (""); - gset tmargin 0; - else - input ("press any key for the next plot: "); - endif + subplot (312); + axis ("labely"); + title (""); + xlabel (""); + gset tmargin 0; grid ("on"); if (maxmag - min (mag) > 100) axis ([ w(1), w(n), maxmag-100, maxmag ]); @@ -68,13 +62,9 @@ endif plot (w, mag, ";Stop band (dB);"); - if (gnuplot_has_multiplot) - subplot (313); - axis ("label"); - title (""); - else - input ("press any key for the next plot: "); - endif + subplot (313); + axis ("label"); + title (""); grid ("on"); axis ("autoy"); xlabel ("Frequency");