![]() ![]() A better choice is the license function, which (as you pointed out) requires a unique "feature string" for each toolbox. A week ago I installed MATLAB on my computer to use Simulink. Does anyone know of a quick way to test which toolboxes are used in a set of code. It's possible to have a toolbox installed and no license to use it (or all the available licenses could be checked out by other users). Theme Copy ver TO get activated licenses please run this command Theme Copy license ('test','DatabaseToolbox') for DatabaseToolbox Toolbox license ('test','simulink') for simulink Toolbox if license exist answer will be 1 else 0. One drawback to the ver function is that it only tells you what's installed, not what has an available license. 1 Link Translate Helpful (0) Run in Command window to get the Version. Now I'll wait for a compiled version before testing it. MATLAB function to check whether native toolboxes have licenses available and are installed. Los toolboxes de MATLAB La instalación básica de MATLAB incluye muchísimas funciones nativas con las que se puede hacer prácticamente de todo. A useful error message would've saved time trying to diagnose the problem. Unfortunately, it required the Image Processing Toolbox, which I currently lack. This question was prompted by trying to test a co-workers script early. I hoped for a list of the many toolboxes I have access to. image_toolbox).įurthermore, when I ran license('inuse'), I only received the following: 'Image Processing Toolbox') to product names (ie. Developers can integrate this function into their scripts to quickly verify that users have the required toolboxes to run their scripts and if not, warn users. Some quick searching revealed ver product or the license function with the 'test' argument may be useful, but I could not find a mapping of toolbox names (ie. MATLAB function to check whether native toolboxes have licenses available and are installed. How would one check for installed MATLAB toolboxes in a script/function? (checking toolbox versions would also be good!) This could provide a quick and useful error message when someone attempts to run a script without a required toolbox.Ī quick, albeit rough, solution that comes to mind is parsing the text output of the ver command. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |