简体   繁体   中英

How can I allow only one instance of app to run which created in APP DESIGNER of MATLAB?

I created application in app designer of matlab and install it in apps. I can run one or more instance this apps but I need only one. For example in "GUIDE" of matlab is option: "GUI allows only one instance to run (singleton)"

If you check the code GUIDE generates you will find out that it uses global application data for keeping count of application instances. So you could implement something similar with setappdata(0, ...) and getappdata(0, ...) .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM