MATLAB Answers


License error or the function?

Asked by uncung fgv on 27 Nov 2012
when in debug-run the function always appear like this:
??? License checkout failed.
License Manager Error -4
Maximum number of users for Statistics_Toolbox reached.
Try again later.
To see a list of current users use the lmstat utility or contact your License Administrator.
Troubleshoot this issue by visiting:
Diagnostic Information:
Feature: Statistics_Toolbox
License path: C:\Documents and Settings\Michael\Application Data\MathWorks\MATLAB\R2008a_licenses;C:\Program Files\MATLAB\R2008a\licenses\license.dat;C:\Program
FLEXnet Licensing error: -4,132.
Error in ==> MKprob1 at 41
[F X]=ecdf(p);
but when i try to run another function, the function is run well.


Sign in to comment.


2 Answers

Answer by José-Luis
on 27 Nov 2012
Edited by José-Luis
on 27 Nov 2012
 Accepted Answer

It looks like you are using a license server, and that all the licenses for the statistics toolbox are in use ( ecdf() is a function in that toolbox).
Find out who in your department is using it, unplug their computer and try again.
In all seriousness, you could ask IT to get more licenses, or you wait until one is freed up, or you could write your own version of ecdf(), or you could look in the file exchange to see if someone has already done that.


thx. yes this function from my colleague. at his computer it is run well. but when i copy to my PC it appears like that.
maybe there are another answer or suggestion. i wait for a day.
Fair enough.

Sign in to comment.

Answer by Vishal Rane on 27 Nov 2012

Check if you are able to run any basic function from Statistics_Toolbox in the command window first.
If you get the same error it is due to unavailablility of spare licenses on the server.


ok, let me try. thx. but i am blind on matlab.
i ll ask my colleague. i ve no idea. thx.

Sign in to comment.