octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #59066] fir1 => error: fir2: product: nonconfo


From: John Beale
Subject: [Octave-bug-tracker] [bug #59066] fir1 => error: fir2: product: nonconformant arguments
Date: Fri, 4 Sep 2020 20:23:17 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux armv7l) AppleWebKit/537.36 (KHTML, like Gecko) Raspbian Chromium/78.0.3904.108 Chrome/78.0.3904.108 Safari/537.36

URL:
  <https://savannah.gnu.org/bugs/?59066>

                 Summary: fir1 => error: fir2: product: nonconformant
arguments
                 Project: GNU Octave
            Submitted by: jbeale
            Submitted on: Sat 05 Sep 2020 12:23:15 AM UTC
                Category: Libraries
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Unexpected Error or Warning
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
                 Release: 4.2.2
         Discussion Lock: Any
        Operating System: GNU/Linux

    _______________________________________________________

Details:

I have GNU Octave 4.2.2 running on Intel J3455 (4.15.0-111-generic #112-Ubuntu
SMP). 

I do not understand why a call to signal library fir1() to construct a
highpass filter works with literal values, but fails using variables having
the same value as the literals. An example is shown below. If this is user
error, what am I missing?


>> b = fir1(400, 0.012500, "high");
>> b = fir1(ntap, fset, "high");
error: fir2: product: nonconformant arguments (op1 is 1x402, op2 is 1x401)
error: called from
    fir2 at line 147 column 5
    fir1 at line 118 column 5

>> ntap
ntap = 400
>> fset
fset =  0.012500
>> ntap - 400
ans = 0
>> fset - 0.0125
ans = 0
>> version
ans = 4.2.2
>> pkg list
Package Name   | Version | Installation directory
---------------+---------+-----------------------
      control *|   3.0.0 | /usr/share/octave/packages/control-3.0.0
        image  |   2.6.2 | /usr/share/octave/packages/image-2.6.2
           io  |   2.6.1 | /home/john/octave/io-2.6.1
miscellaneous  |   1.3.0 | /home/john/octave/miscellaneous-1.3.0
     parallel  |   4.0.0 | /home/john/octave/parallel-4.0.0
       signal *|   1.4.1 | /home/john/octave/signal-1.4.1
       struct  |  1.0.16 | /home/john/octave/struct-1.0.16
     symbolic  |   2.8.0 | /home/john/octave/symbolic-2.8.0





    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?59066>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]