I am migrating my code and need to reduce the amount of used toolboxes as much as possible. For instance, I have a large script file that uses several toolboxes. I can find these using
[fList,pList] = matlab.codetools.requiredFilesAndProducts('myscript.m');
display({pList.Name}');
I get the following result
'Image Processing Toolbox'
'Instrument Control Toolbox'
'MATLAB'
'Model-Based Calibration Toolbox'
'Signal Processing Toolbox'
'Statistics and Machine Learning Toolbox'
'Parallel Computing Toolbox'
Is there an easy way to know which functions are used from that particular toolbox in my script file? For example, how can I know which function of the 'Model-Based Calibration Toolbox' is used in my code? Or which line of code that toolbox is used at? This way I can try to implement the function myself and avoid using the toolbox.
Note: I need this to include toolbox dependencies in all local and nested functions, as well as function used inside those functions (full dependency tree). For instance a gui file has many local callback functions.