MATLAB: How to find ALL the functions/scripts potentially used in a script

dependent functions

I am looking for a way to determine ALL non-Matlab inherent functions/scripts MIGHT be used by a certain script.
The script I am thinking about gives you the option to analyse your data in various ways depending on which options you chose at the start. From what I read there are ways to find out which functions/scripts were called when running a script with a certain input. This is not what I am looking for as it would not include scripts/functions necessary for a different file/user input. I basically want to know all non-Matlab functions/scripts which appear somewhere in this script and ideally also all the scripts/functions used by those scripts/functions.
Related Question