[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #51148] Function that runs in Matlab produces
From: |
Rik |
Subject: |
[Octave-bug-tracker] [bug #51148] Function that runs in Matlab produces error in Octave |
Date: |
Wed, 31 May 2017 16:34:52 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:53.0) Gecko/20100101 Firefox/53.0 |
Follow-up Comment #6, bug #51148 (project octave):
For a quick test, I removed the semicolon from the call to residue and I get
p =
1.0000e+18 9.0036e+27 1.1289e+36 1.7010e+47
q =
1.0000e+00 1.9231e+15 3.2045e+24 1.3427e+32 2.3274e+38
It would be interesting to see what Matlab returns for the residue
calculation.
The actual error in Octave is caused by the unequal sizes of div and rem after
the call to deconv.
q = div(2)*p+[zeros(1,length(p)-length(rem)) rem];
The variable p is 1x4 while the variable rem is 1x5.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?51148>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/