Can I launch a GUI directly from a folder?
2 次查看(过去 30 天)
显示 更早的评论
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?
0 个评论
采纳的回答
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
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 Exchange 中查找有关 Environment and Settings 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!