フィルターのクリア

Launching a different script than the one you're calling

1 回表示 (過去 30 日間)
Theo
Theo 2014 年 7 月 23 日
回答済み: Michael Haderlein 2014 年 7 月 23 日
In LaTeX, it's possible to have the typesetting system compile a root file even if you've called the compiler on a constituent file. For instance, by adding:
% !TEX TS-program = xelatexmk
% !TEX root = main.tex
to chapter1.tex, you can compile the main document main.tex if you compile chapter1.tex.
In Matlab, I often have subfunctions that are called from a main script. I often accidentally press F5 to run the subfunction when I mean to run the main script. Is there a little hack that you can use to make it so pressing F5 on a subfunction instead runs a root caller?

回答 (1 件)

Michael Haderlein
Michael Haderlein 2014 年 7 月 23 日
Well, there's something, but I wouldn't recommend it:
At the "Run" button (green triangle on white rectangle) theres a drop down menu where you can edit run configurations for any function. A window with a script opens in which you can change the command which will be executed when F5/run is pressed while the function is activated.
Best regards,
Michael

カテゴリ

Help Center および File ExchangeSoftware Development Tools についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by