how can i know which toolbox a function is calling?
古いコメントを表示
If I have a function, how can I know which toolbox is using without going through the code?
And also, how can I know which subfunctions a fucntion is calling?
I have used:
profile on
function()
profile viewer
but it looks really messy because it lists also all scripts and built-in
Thanks
採用された回答
その他の回答 (4 件)
Thomas
2011 年 11 月 22 日
Use a 'which FucntionName' command
Eg.
>> which qfunc
/Applications/MATLAB_R2011b.app/toolbox/comm/comm/qfunc.m
Tells you that it is using the communication toolbox..
5 件のコメント
joeDiHare
2011 年 11 月 23 日
joeDiHare
2011 年 11 月 23 日
Thomas
2011 年 11 月 23 日
It will if you are asking for an inbuilt functions and wanted to know which toolbox the function belongs to.. :)
If you want tot know all the toolboxes a function is dependent on, try depfun() as mentioned by Fangjun.
More info on depfun(): http://www.mathworks.com/help/techdoc/ref/depfun.html
Sean de Wolski
2011 年 11 月 23 日
That is not necessarily true.
which max
will tell you:
built-in (/Applications/MATLAB_R2009b.app/toolbox/matlab/datafun/@logical/max) % logical method
However, if you run
doc max
you'll see that max is a function in other toolboxes as well and will be invoked when the object is of that class.
Titus Edelhofer
2011 年 11 月 24 日
If you are interested in the various overloaded methods of a function, call "which -all max". Titus
Titus Edelhofer
2011 年 11 月 23 日
Hi,
usually depfun is indeed the answer, but it has it's limitations as you saw. One rather simple (although not optimal) way is the following: start fresh MATLAB, run your GUI (and click around the buttons that might invoke computations) and try afterwards
license('inuse')
It tells you the toolboxes that have been aquired from the license manager (.i.e., the toolboxes your code used.
Titus
Fangjun Jiang
2011 年 11 月 22 日
0 投票
try depfun()?
2 件のコメント
joeDiHare
2011 年 11 月 23 日
Fangjun Jiang
2011 年 11 月 23 日
Try some of the options of depfun(), such as '-toponly', '-quite'.
Rubaisha Siddiqui
2017 年 5 月 9 日
0 投票
can anybody please tell me to which Toolbox trainedClassifer belongs? everytime i run the code its gives an error Undefined variable "trainedClassifier"
カテゴリ
ヘルプ センター および File Exchange で Debugging and Analysis についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!