Function requires a Toolbox for which you do not have a license
9 views (last 30 days)
Show older comments
Up until today, I have been using my scripts without any issues. These scripts rely on a number of functions associated with certain toolboxes (for example, the tdfread function, which belongs to the Statistics and Machine Learning Toolbox). However, all of a sudden, MATLAB no longer allows me to run these scripts, as it tells me I do not have access to these functions.
It seems the reason is that I do not have a license for these toolboxes. Still, I have been able to use them without any problem until now, and my account is linked to an academic institution that supposedly has licenses for all of these toolboxes.
Could you please tell me what might be happening?
4 Comments
Torsten
on 27 Aug 2025
Edited: Torsten
on 28 Aug 2025
Are you sure about the name of the folder ? "path" usually is a placeholder where you have to insert the actual name of the path starting with a letter for the drive (e.g. C:\ ) (absolute pathname) :
mygenes = tdfread('/path/Gene_list.txt', "\t");
Try what happens if you copy the .txt file to your actual working directory and use
mygenes = tdfread('Gene_list.txt','\t');
If this doesn't work either, you should contact the IT Department of the institution your account is linked to.
Answers (1)
John D'Errico
on 26 Aug 2025
If you could use it in the past, then you had a license for that toolbox. You cannot use a function from a toolbox where you lack a license for that toolbox. Since that has now apparently changed, you need to talk to the source for your copy of MATLAB, which will be the school providing you the license. Talk to your local MATLAB administrator. Only they can answer your question, and hopefully fix the problem.
5 Comments
John D'Errico
on 26 Aug 2025
We used to see this happen, long ago when I was in an area with shared licenses. But as you say, it tells you that all licenses are in use. Here, @ALICIA has said MATLAB says they do not have access. So the question is, what error message was generated?
For example, I don't have the global optimization TB on my license. So if I try to use ga there, this call will generate an error:
f = @(x) x;
ga(f)
ga requires Global Optimization Toolbox.
So is @ALICIA seeing an error stating no license is available from the license pool, or is it an error that states an attempt was made to use a toolbox they do not have a license for at all?
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!