Script is not working anymore

2 次查看(过去 30 天)
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

采纳的回答

Alessandro
Alessandro 2011-11-22
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 个评论
Jan
Jan 2011-11-22
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

请先登录,再进行评论。

更多回答(1 个)

Jan
Jan 2011-11-22
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 个评论
Jan
Jan 2011-11-22
@Alessandro: "which fsolve", not "solve".
The defaults should be replied by: "fsolve defaults"
Sean de Wolski
Sean de Wolski 2012-3-14
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

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Solver Outputs and Iterative Display 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by