bugGNU Octave - Bugs: bug #57576, freqz error when using complex...


bug #57576: freqz error when using complex data and a specific range of frequencies

Submitted by:  Laurent Haas <f6fvy>
Submitted on:  Fri 10 Jan 2020 06:07:12 PM UTC  
Category:  Octave Function Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Unexpected Error
Status:  Fixed Assigned to:  None
Originator Name:  Open/Closed:  Closed
Release:  5.1.0 Operating System:  Microsoft Windows

Add a New Comment (Rich Markup)

You are not logged in

Please log in, so followups can be emailed to you.


Fri 10 Jan 2020 06:40:32 PM UTC, comment #1: 

Confirmed, due to an off-by-one error when the "whole" spectrum is plotted. I fixed this on the default branch for the upcoming version 6.1


Mike Miller <mtmiller>
Project Administrator
Fri 10 Jan 2020 06:07:12 PM UTC, original submission:  

When using complex data input and a specific range of frequencies, freqz generates an error and fails.

>> y = ones(1,5000) + i*ones(1,5000);
>> freqz(y(1:5000), 1, [-4E6:.01E6:4E6], 2.5E6);
error: __plt2vv__: vector lengths must match
error: called from
    __plt__>__plt2vv__ at line 482 column 5
    __plt__>__plt2__ at line 242 column 14
    __plt__ at line 107 column 18
    plot at line 223 column 10
    freqz_plot at line 55 column 3
    freqz at line 194 column 5

Other details in this thread : https://lists.gnu.org/archive/html/help-octave/2020-01/msg00032.html

Laurent Haas <f6fvy>


(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by f6fvy (Submitted the item)

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.




    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2020-01-10 mtmiller StatusNone => Fixed
        Open/ClosedOpen => Closed

    Back to the top

    Powered by Savane 3.5