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

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

[Octave-bug-tracker] [bug #49990] cheby2 errors out if only asking for a


From: Nicholas Jankowski
Subject: [Octave-bug-tracker] [bug #49990] cheby2 errors out if only asking for a single output.
Date: Thu, 5 Jan 2017 19:31:13 +0000 (UTC)
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:50.0) Gecko/20100101 Firefox/50.0

URL:
  <http://savannah.gnu.org/bugs/?49990>

                 Summary: cheby2 errors out if only asking for a single
output. 
                 Project: GNU Octave
            Submitted by: nrjank
            Submitted on: Thu 05 Jan 2017 07:31:11 PM GMT
                Category: Octave Forge Package
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Matlab Compatibility
                  Status: None
             Assigned to: None
         Originator Name: Nicholas Jankowski
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 4.2.0
        Operating System: Any

    _______________________________________________________

Details:

signal package cheby2 function produces an error for nargout ==1, Matlab
provides an output. 

Octave 4.2.0, signal 1.3.2

>> Q = cheby2(3,4,.5)
error: Invalid call to cheby2.  Correct usage is:
...


Matlab 2016b:

>> Q = cheby2(3,4,.5)
Q =
    0.5817    0.7479    0.7479    0.5817

>> [b,a]=cheby2(3,4,.5)
b =
    0.5817    0.7479    0.7479    0.5817
a =
    1.0000    0.5929    0.7382    0.3279

>> Q==b
ans =
  1×4 logical array
   1   1   1   1


from cheby2 code it looks like it should be a simple add at the end. I'm
putting together a set of simple output tests/hacks for bug #49318.  will try
to include this.




    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?49990>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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