Info
此问题已关闭。 请重新打开它进行编辑或回答。
how to display the name of an input function by a function functions?
1 次查看(过去 30 天)
显示 更早的评论
I would like to write a function functions ff and run this way: ff(@inputfunc) which prints the name of the input function, in this case "inputfunc". How to do that?
0 个评论
回答(2 个)
Matthew Eicholtz
2016-3-8
I am slightly confused by the wording of your question ("function functions ff"?), but I have a feeling that mfilename may be a good starting point.
You can use mfilename inside of a function to get the name of the currently executing function.
Does this help at all?
0 个评论
此问题已关闭。
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!