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!