![]() ![]() A better choice is the license function, which (as you pointed out) requires a unique "feature string" for each toolbox. 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). One drawback to the ver function is that it only tells you what's installed, not what has an available license. Now I'll wait for a compiled version before testing it. Is there a way to find out what are the toolboxes that are not installed but needed to execute a given script fList, pList (files) also returns a list of the MathWorks products possibly required to run the program files specified by files. 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: a trial version) and after running the code execute: Theme. 'Image Processing Toolbox') to product names (ie. First, you can run code on a machine that has the necessary products (e.g. ![]() 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. There should be an hyperlink to the particular line (s) of your code calling these functions. Within my code, Id like to check if the end-users have fsolve in their installation and if not, use fzero. 2 Try running dependency report, this will tell you which function (s) cause (s) a particular toolbox to be used. MATLAB should respond with a list of all the functions. 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. I am writings some code that I wish to distribute open source. To verify that your installation is correct, open a new session of matlab and then type: help mytools. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |