フィルターのクリア

Keyboard Short-cut for running a Scrip

91 ビュー (過去 30 日間)
Dima
Dima 2012 年 3 月 16 日
コメント済み: meraj AHMED 2017 年 8 月 20 日
Hello! I have two questions:
1)I wonder if you can set up the Matlab to run certain scrip after a predefined keyboard short-cut is pressed?
2) As a similar question - how do I run three scripts one after another from one scrip?
Thanks! Dima

回答 (4 件)

Harold
Harold 2012 年 3 月 17 日
F5 will run what you have in the script window. To run scripts one after the other from one script, just call them one after the other as functions.
  1 件のコメント
meraj AHMED
meraj AHMED 2017 年 8 月 20 日
very much thank you sir.

サインインしてコメントする。


Jan
Jan 2012 年 11 月 15 日
This is an old thread and I do not assume that the OP is still waiting. Anyway:
FEX: EditorMacro can trigger commands by pressing a key in the editor and the command window. If the command window does not have the focus, the job cannot and should not be done, because the user expects, that only the program in focus reacts to keyboard clicks.

Image Analyst
Image Analyst 2012 年 3 月 17 日
Not that I know of, but you can set up a button on the shortcut toolbar to run an m-file with just a single click, no matter what the current folder is or where the m-file is located.
  2 件のコメント
Dima
Dima 2012 年 3 月 17 日
yes but this solution will require opening a new instance of the Matlab right?
Image Analyst
Image Analyst 2012 年 3 月 17 日
No, it won't. Try it. Make sure the shortcut toolbar is showing. Then right click and select "New shortcut" - it will be available as soon as you're done editing it and saved it.

サインインしてコメントする。


alessandro
alessandro 2012 年 11 月 15 日
Is there a way to run a script when the cursor is not on the command window? As an example, it would be handy to close all the figures (run "close all") with a keystroke

カテゴリ

Help Center および File ExchangeDesktop についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by