[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: (no subject)
From: |
siko1056 |
Subject: |
Re: (no subject) |
Date: |
Fri, 10 Jun 2016 01:13:37 -0700 (PDT) |
Dear Lester,
Yes this behavior of fzero, passing extra arguments, in Matlab is known [1],
e.g. Matlab allows:
mysin = @(x,a,b) a*sin(x)+b
fzero (mysin, 1, [], 2, 0.2)
Octave doesn't. Matlab still supports this behavior maybe for legacy reason,
but does not document this and recommends using other methods [2], that
Octave supports as well. For your Example:
allequ2 = @(x) allequ(x,Y1(j,i),zb(j),zt(j),surpor(j),c(j));
yy = fzero(allequ2,Y2(j,i),options);
HTH, Kai
[1]
http://octave.1599824.n4.nabble.com/passing-parameters-to-fzero-fsolve-td1637028.html
[2] https://www.mathworks.com/help/matlab/ref/fzero.html#inputarg_fun
--
View this message in context:
http://octave.1599824.n4.nabble.com/no-subject-tp4677559p4677590.html
Sent from the Octave - General mailing list archive at Nabble.com.
- [no subject], Lester Anderson, 2016/06/09
- Re: (no subject), siko1056, 2016/06/09
- Re: (no subject), Lester Anderson, 2016/06/10
- Re: (no subject),
siko1056 <=
- Re: (no subject), Lester Anderson, 2016/06/10
- Re: (no subject), Doug Stewart, 2016/06/10
- Re: (no subject), Lester Anderson, 2016/06/10
- Re: (no subject), Doug Stewart, 2016/06/10
- Re: (no subject), Tatsuro MATSUOKA, 2016/06/10
- Re: (no subject), Doug Stewart, 2016/06/10
- Re: (no subject), Lester Anderson, 2016/06/10
- Re: (no subject), Lester Anderson, 2016/06/10
- Re: (no subject), Doug Stewart, 2016/06/10
- Re: (no subject), Lester Anderson, 2016/06/10