- 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 次查看(过去 30 天)
显示 更早的评论
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1324955/image.jpeg)
Toolbox can be found in the list from 'var'. I do not know why.
0 个评论
回答(2 个)
Sachin
2023-3-15
I understand that you are getting error ‘function need the Toolbox’.
Here are some points that might be helpful to you:
0 个评论
Steven Lord
2023-3-15
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 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Introduction to Installation and Licensing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!