Disable function if called from livescript

1 回表示 (過去 30 日間)
Etienne Coetzee
Etienne Coetzee 2021 年 1 月 20 日
回答済み: Walter Roberson 2021 年 1 月 20 日
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.

採用された回答

Walter Roberson
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 件)

カテゴリ

Help Center および File ExchangeMATLAB Report Generator についてさらに検索

タグ

製品


リリース

R2019b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by