Finding the parent function name

10 ビュー (過去 30 日間)
Gopalakrishnan venkatesan
Gopalakrishnan venkatesan 2016 年 8 月 4 日
コメント済み: Walter Roberson 2016 年 8 月 4 日
function y = data_num(a,b,c)
How can I find the parent function of ''data_num''?
if i am using deprpt('data_num'). It is not displaying the parent function name. It is thrwoing a error as
''Parent functions cannot be displayed in dependency reports for a single file''.
Thanks a lot

採用された回答

Walter Roberson
Walter Roberson 2016 年 8 月 4 日
There is typically not just one caller of any given .m file, and the callers of any given .m file might not even be in any directory that is on your current MATLAB path.
Image Analyst suggests using control-shift-F for multi-file search
  2 件のコメント
Gopalakrishnan venkatesan
Gopalakrishnan venkatesan 2016 年 8 月 4 日
function a = eliminate_m(g,h)
i know the parent function of 'eliminate_m'. When i use deprpt
('eliminate_m') still i am getting the same error and it is not displaying the parent function.
Walter Roberson
Walter Roberson 2016 年 8 月 4 日
The deprpt() function is undocumented, and has been replaced in newer versions.
You can only be told the parent of functions invoked by the files you named. If you only name one file then it cannot tell what the parent is. Individual .m files do not know who calls them, but you can ask to analyze a bunch of files at the same time and see which (if any) of those files call the one you are interested in.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeLogical についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by