How to find the functions called by another function

25 vues (au cours des 30 derniers jours)
Nagendra Reddy
Nagendra Reddy le 20 Août 2011
Commenté : raym le 21 Juil 2017
if any Matlab function is calling say 100 functions
Is there any short cut to find the functions called by a specific function? with out going through the entire code.
and any shortcut to find out the functions calling a specific function?
  1 commentaire
Kishor
Kishor le 20 Août 2011
you can check in reverse order.Place break point in function and then check call stack(use command dbstack) and you will get data in form of structure.

Connectez-vous pour commenter.

Réponses (3)

Jan
Jan le 20 Août 2011
There are a lot of related tools in the FEX: FEX: term=depfun?
  2 commentaires
raym
raym le 21 Juil 2017
Modifié(e) : raym le 21 Juil 2017
In a reverse way, if for a function, I want to make minor different resonse based on who calling it( the upper function),how to get the function name calling it? This is something like the function know if it is compiled by "x = isdeployed "
raym
raym le 21 Juil 2017
Got it. dbstack

Connectez-vous pour commenter.


PA00
PA00 le 23 Août 2011
I would try using the profile function. You can either acess the Profiler under the Desktop (Desktop->Profiler) on the menu.

Walter Roberson
Walter Roberson le 20 Août 2011
See depfun()
The IDE (integrated development environment) has a specific menu item at the top to run the analysis of what is called.
  1 commentaire
Nagendra Reddy
Nagendra Reddy le 20 Août 2011
depfun() is giving all the pre-defined functions but not the user defined functions. I want the list of user-defined functions

Connectez-vous pour commenter.

Catégories

En savoir plus sur Debugging and Analysis dans Help Center et File Exchange

Tags

Produits

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by