How to run m-file instead of editor open
1 回表示 (過去 30 日間)
古いコメントを表示
How to run m-file instead of editor open
I created an m file using a script editor. Running the m file opens the Editor window.
But instead of opening the editor window, I want it to run right away.
The m file that I used before was immediately executed, but the file that I created opens in the editor.
0 件のコメント
回答 (3 件)
the cyclist
2021 年 8 月 13 日
編集済み: the cyclist
2021 年 8 月 13 日
If the name of the file is myfile.m, then typing
>> myfile
(without the >>) in the Command Window should simply execute the file. Is it possible that a command such as
edit myfile
is inside the file, so that when you run the file, it opens itself?
the cyclist
2021 年 8 月 13 日
If you have the MATLAB Compiler, you can create a stand-alone executable of your code. (That is a separate product with additional cost.)
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Entering Commands についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!