evalin('caller','mfilename') does not work.
显示 更早的评论
采纳的回答
更多回答(1 个)
Walter Roberson
2019-5-13
0 个投票
"evalin('caller', expression) finds only variables in the caller's workspace; it does not find functions in the caller. For this reason, you cannot use evalin to construct a handle to a function that is defined in the caller."
If I recall correctly mfilename is implemented by defining a function in each file.
类别
在 帮助中心 和 File Exchange 中查找有关 Integrate C Code Using C Caller Blocks 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!