Script is not working anymore

7 views (last 30 days)
Alessandro
Alessandro on 22 Nov 2011
Hi all, I'm trying to run a script that I had used without problem in March 2011. The Matlab version is 7.8.0.347 (R2009a). I get the following error message.
??? Error using ==> optimset at 143
No default options available for the function 'fsolve'.
Error in ==> implicit_burnup_v02 at 4
options = optimset('fsolve');
Did anything change recently as far as this function is concerned? I tried to look up for users with a similar problem but I have been unsuccessful so far.
Thank you, Alessandro

Accepted Answer

Alessandro
Alessandro on 22 Nov 2011
which fsolve C:\Program Files\MATLAB\R2009a\toolbox\optim\optim\fsolve.m
fsolve defaults ??? License checkout failed. License Manager Error -4 ...
I suspect something is wrong with my license then!!! Anyway I didn't get any warning about that when I started Matlab (!?)
  1 Comment
Jan
Jan on 22 Nov 2011
This can happen if you have functions defined with the same name as toolbox functions. You could test this by removing all user-defined folders from the path ("pathtool"->Default button) an check "fsolve defaults" again.
But usually -4 means, that the maximum number of clients is exhausted: http://www.mathworks.com/support/solutions/en/data/1-16WM4W/?s_cid=pl_LME4b

Sign in to comment.

More Answers (1)

Jan
Jan on 22 Nov 2011
I do not get an error using the same Matlab version 7.8.0.347 (2009a). But fsolve is part of the Optimization Toolbox. Please check if you have installed it correctly:
ver
which fsolve
The defaults should be replied by:
fsolve('defaults')
  2 Comments
Jan
Jan on 22 Nov 2011
@Alessandro: "which fsolve", not "solve".
The defaults should be replied by: "fsolve defaults"
Sean de Wolski
Sean de Wolski on 14 Mar 2012
Copying Alessandro's comment with license censored.
Hi Jan,
thank you for you reply. It seems I have it. This is what I get.
>> ver
-------------------------------------------------------------------------------------
MATLAB Version 7.8.0.347 (R2009a)
MATLAB License Number: ####### [SCd Censor]
Operating System: Microsoft Windows XP Version 5.1 (Build 2600: Service Pack 3)
Java VM Version: Java 1.6.0_04-b12 with Sun Microsystems Inc. Java HotSpot(TM) Client VM mixed mode
-------------------------------------------------------------------------------------
MATLAB Version 7.8 (R2009a)
Simulink Version 7.3 (R2009a)
Curve Fitting Toolbox Version 2.0 (R2009a)
Database Toolbox Version 3.5.1 (R2009a)
Fuzzy Logic Toolbox Version 2.2.9 (R2009a)
Optimization Toolbox Version 4.2 (R2009a)
Partial Differential Equation Toolbox Version 1.0.14 (R2009a)
Signal Processing Toolbox Version 6.11 (R2009a)
Spline Toolbox Version 3.3.6 (R2009a)
Spreadsheet Link EX Version 3.0.3 (R2009a)
Statistics Toolbox Version 7.1 (R2009a)
Symbolic Math Toolbox Version 5.2 (R2009a)
System Identification Toolbox Version 7.3 (R2009a)
Wavelet Toolbox Version 4.4 (R2009a)
>> which solve
C:\Program Files\MATLAB\R2009a\toolbox\symbolic\solve.m

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!