Mercurial > octave
changeset 27927:88e04bb41eba
fix freqz plot error with complex input and frequency vector (bug #57576)
* freqz.m: Only duplicate first element when not called with a vector of
frequencies.
author | Mike Miller <mtmiller@octave.org> |
---|---|
date | Fri, 10 Jan 2020 10:34:45 -0800 |
parents | 3b4526d90476 |
children | 6804f2feea46 |
files | scripts/signal/freqz.m |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/signal/freqz.m Fri Jan 10 10:16:40 2020 -0500 +++ b/scripts/signal/freqz.m Fri Jan 10 10:34:45 2020 -0800 @@ -195,7 +195,7 @@ if (plot_output) ## Plot and don't return values. - if (whole_region) + if (whole_region && isscalar (n)) h(end+1) = h(1); # Solution is periodic. Copy first value to end. endif freqz_plot (f, h, freq_norm);