Disable function if called from livescript

1 Ansicht (letzte 30 Tage)
Etienne Coetzee
Etienne Coetzee am 20 Jan. 2021
Beantwortet: Walter Roberson am 20 Jan. 2021
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.

Akzeptierte Antwort

Walter Roberson
Walter Roberson am 20 Jan. 2021
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')

Weitere Antworten (0)

Kategorien

Mehr zu MATLAB Report Generator finden Sie in Help Center und File Exchange

Tags

Produkte


Version

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by