フィルターのクリア

Can I launch a GUI directly from a folder?

1 回表示 (過去 30 日間)
Steffen Adria
Steffen Adria 2011 年 7 月 13 日
コメント済み: Tadgh 2014 年 1 月 15 日
I'm trying to avoid making the user start MATLAB and then run the GUI, it would be most convenient if the user could simply activate an icon in a folder, similar to an executable. Can it be done?

採用された回答

Rick Rosson
Rick Rosson 2011 年 7 月 13 日
If you are using Windows, you can create a .bat file that would launch MATLAB and immediately run a MATLAB script that would change to the appropriate directory and then start the GUI.
The .bat file should contain:
matlab -r myscript
Make sure that myscript.m is located in a directory that is on the MATLAB path.
For more information:
docsearch matlab
HTH.
  1 件のコメント
Tadgh
Tadgh 2014 年 1 月 15 日
Could you please explain how to create the .bat file. I am trying everything here as part of my final year project to do the same thing as above but can find no help.
Thank you

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeEnvironment and Settings についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by