Script is not working anymore

조회 수: 3 (최근 30일)
Alessandro
Alessandro 2011년 11월 22일
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