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에서 MATLAB Report Generator에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!