Open a GUI directly from desktop (Shortcut) in MATLAB environment

▼魔方 西西 提交于 2019-11-28 12:44:59
Dev-iL

What you actually need is a way to run .m files via the command line - an action which isn't specific to GUIs. A command line operation is something you can bind to a shortcut on your desktop or execute using a batch file.

The solution you're looking for is a combination of MATLAB-specific syntax and a straightforward batch file creation procedure:

  1. Open a text editor.

  2. Write this inside: "C:\<path to your MATLAB folder>\matlab.exe" -nodisplay -nosplash -nodesktop -r "cd('C:\<path to your where the .m file is>\'); run('C:\<path to where the .m file is>\mfile.m');"

  3. Save the file as .bat (in windows) and run.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!