How to find the functions called by another function

조회 수: 10 (최근 30일)
Nagendra Reddy
Nagendra Reddy 2011년 8월 20일
댓글: raym 2017년 7월 21일
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
Kishor
Kishor 2011년 8월 20일
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.

댓글을 달려면 로그인하십시오.

답변 (3개)

Jan
Jan 2011년 8월 20일
There are a lot of related tools in the FEX: FEX: term=depfun?
  댓글 수: 2
raym
raym 2017년 7월 21일
편집: raym 2017년 7월 21일
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 2017년 7월 21일
Got it. dbstack

댓글을 달려면 로그인하십시오.


PA00
PA00 2011년 8월 23일
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 2011년 8월 20일
See depfun()
The IDE (integrated development environment) has a specific menu item at the top to run the analysis of what is called.
  댓글 수: 1
Nagendra Reddy
Nagendra Reddy 2011년 8월 20일
depfun() is giving all the pre-defined functions but not the user defined functions. I want the list of user-defined functions

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Debugging and Analysis에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by