Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Dóra Kocsis
dynare
Commits
0155b683
Commit
0155b683
authored
Sep 19, 2011
by
Sébastien Villemot
Committed by
Stéphane Adjemian
Sep 19, 2011
Browse files
Remove extra argument (in solve_algo=0 under Octave)
parent
c07a915d
Changes
1
Hide whitespace changes
Inline
Side-by-side
matlab/dynare_solve.m
View file @
0155b683
...
...
@@ -57,8 +57,8 @@ if options_.solve_algo == 0
% Under Octave, use a wrapper, since fsolve() does not have a 4th arg
func2
=
str2func
(
func
);
func
=
@
(
x
)
func2
(
x
,
varargin
{:});
% The Octave version of fsolve do not converge when it starts from the solution
[
fvec
,
fjac
]
=
feval
(
func
,
x
,
varargin
{:}
);
% The Octave version of fsolve do
es
not converge when it starts from the solution
fvec
=
feval
(
func
,
x
);
if
max
(
abs
(
fvec
))
>=
options_
.
solve_tolf
[
x
,
fval
,
exitval
,
output
]
=
fsolve
(
func
,
x
,
options
);
else
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment