How to read in names of function input arguments as strings?
1 回表示 (過去 30 日間)
古いコメントを表示
Is there any way I can read in the names of input arguments of function m-files as strings? I have a function m-file: function ([inarg1 inarg2 inarg3]) ... I need the names of the input arguments to display in the output plot. Thanks!
0 件のコメント
採用された回答
Matt J
2013 年 11 月 24 日
doc inputname
2 件のコメント
Walter Roberson
2013 年 11 月 24 日
Do you want the names of the variables that users passed in to the call, or do you want to know, "for this function I am executing now, what the names are that I gave the the dummy arguments" (e.g., for producing help information) ?
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で String Parsing についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!