checking if function is a part of/which toolbox
We have a relatively "rich" matlab installed on our workstations. I now need to send some code to ..., and I'd like to check what toolboxes it requires for it to开发者_开发百科 work properly.
What would be the easiest way to do that ?
How does one find out what toolbox some function belongs to ?
I see two questions
What toolboxes are required for the function I want to send?
You need to generate a Dependency Report. As you can see in the link I've posted, the required toolboxes are listed towards the end.
Another way to get that information is depfun - this will give you the files your function depends on.
THIS is probably what you really want - depdir - it will list the dependent directories of your M-file.
What toolbox does my function belong to?
You can get that information with the which command - it will tell you where it's located and indicate if it's a built-in function.
精彩评论