Disable function if called from livescript
1 次查看(过去 30 天)
显示 更早的评论
I am trying to make livescript examples from m-file examples, and have a plot where I can switch certain elements on and off by clicking in the legend. I get an error when I try to set this callback when I convert this script to a livescript. Is there a way that I can ignore this function when running a livescript and is there a way a function can determine if it is being called from a livescript. Thanks in advance.
0 个评论
采纳的回答
Walter Roberson
2021-1-20
mfilename fullpath
will be in a temporary directory if you are using livescript, and the file name itself will start with "LiveEditor"
See also dbstack('-completenames')
0 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Legend 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!