MATLAB Answers

getting name of all functions i use in m file (or script)

조회 수: 9(최근 30일)
daniel
daniel 22 Apr 2014
답변: daniel 22 Apr 2014
Hello,
is there a way to find out quickly all the names of the functions been used in a script file?
for example if i wrote script that called "calculator"
and it used in several function such as "add","sum", "multiply" ,etc.. i want to be able to extract those name of the function easly
thanks

  댓글 수: 1

Jan
Jan 22 Apr 2014
What exactly is "sum"? A local subfunction or the built-in sum function?

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

채택된 답변

Image Analyst
Image Analyst 22 Apr 2014
You can generate a dependency report. On the newer versions of MATLAB, they hid it under the little down arrow on the "Current Folder" panel. On earlier versions it's on the main pulldown menu bar.
Or you can use some more comprehensive apps:

  댓글 수: 0

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

추가 답변(3개)

Jan
Jan 22 Apr 2014
You find a lot of functions in the FileExchange. Simply search for "dependency" or equivalent terms:

  댓글 수: 0

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



daniel
daniel 22 Apr 2014
Thanks you very much! i did find it under the small arrow in the editor window (show editor actions)

  댓글 수: 0

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

범주

태그

Community Treasure Hunt

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

Start Hunting!

Translated by