- Did you install that toolbox when you installed MATLAB? If not, run the MATLAB installer again and only select the toolbox (Medical image toolbox) you want for installation.
- Change the directory to the parent folder of the file and try running it
Toolbox have added. And the m-file of the function can be found buy 'Which'. However, ERROR: function need the Toolbox
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Toolbox can be found in the list from 'var'. I do not know why.
0 commentaires
Réponses (2)
Sachin
le 15 Mar 2023
I understand that you are getting error ‘function need the Toolbox’.
Here are some points that might be helpful to you:
0 commentaires
Steven Lord
le 15 Mar 2023
In order to run a function from a toolbox two conditions must be true. I'm going to write in the context of a desktop installation of MATLAB, not MATLAB Online, since it looks like that's what you're using.
- The function must be installed as part of your installation. If it doesn't, there's no code present for MATLAB to run.
- The product that contains that function must be licensed, that is you must have a license for that product available to check out. If you don't, MATLAB is not allowed to run the code present in that file.
The output of ver will show you if condition 1 is satisfied. It does not say anything about condition 2. For that you'd need to check the output of the license function or (if you're using your company's or your educational institution's license) check with the person or group that maintains your licenses (usually someone in IT.) They can check that your license includes Medical Imaging Toolbox and that there is a license available for you to check out (i.e. that not all the licenses are currently in use.)
0 commentaires
Voir également
Catégories
En savoir plus sur Introduction to Installation and Licensing dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!