FSOLVE requires at least two input arguments.

I am trying to run a scipt I from File Exchange, but I am getting error "Error using fsolve (line 186) FSOLVE requires at least two input arguments" Can please help fix the error?
% Prepare the options for the solver
options = prepareOptionsForSolver(options, 'fsolve');
end
if nargin == 0
error(message('optim:fsolve:NotEnoughInputs')) (line 186)

2 Comments

Please share the code you are running that is causing this error.

The first person to ask is the author who submitted it to the file exchange. Since there are thousands of submissions, you should link to the one you're using and post the code you're using to call it.

Sign in to comment.

Answers (0)

Categories

Find more on Software Development Tools in Help Center and File Exchange

Asked:

on 15 Jan 2025

Commented:

Rik
on 26 Jan 2025

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!