How can I know which function that I used belongs to an additional toolbox rather than matlab?
18 views (last 30 days)
Show older comments
A cooperation development with another team. The do not have some toolboxes that I have used, so try to find which command line has called a function that belongs to an addition toolbox,then I can try to avoid it. Already tried lincese('inuse'), depfun() or inmem function, but it can only get which toolbox was used or the path of that, I still do not know which command line has called it actually.
Is there any possible solution ? or other method to solve my problem ?
0 Comments
Accepted Answer
Steven Lord
on 19 Jan 2018
I believe the Dependency Report will give you the information you want. It will tell you which child functions your main function calls, and you can see the first place in your main function it calls a particular child function using the links in the Children column of the table.
2 Comments
Image Analyst
on 20 Jan 2018
True. In the title bar of the Current folder panel, click the little down arrow and do Reports/Dependency Report. Then when the report comes up, the second column will tell you whether it is a subfunction (meaning the function is defined and located in the same m-file), a toolbox function, or "other" meaning it is defined and resides in a different m-file. Click on the function name in the third column of the Dependency Report and it will bring you to the place in your code where that function was called.
If, however you want all of one particular function's calls in one window, not mixed up with other function calls, then do control-shift-F like I mentioned in my answer.
Either way, they solve your problem of "I still do not know which command line has called it actually." since they will tell you what/where the function was called.
More Answers (1)
Image Analyst
on 19 Jan 2018
Type control-shift-F to bring up the search dialog box. Tell it to search all *.m files in the path, or current folders and subfolders, or wherever you want it to search. Type in the name of the function you want to search for and it will find them.
0 Comments
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!