Distinguish installed MATLAB from Online/Mobile versions
23 views (last 30 days)
Show older comments
Dan Dolan
on 24 Sep 2025 at 15:49
MATLAB has commands such as ispc/ismac/isunix and computer to determine the local computing environment. Is there a way to distinguish MATLAB Online and MATLAB Mobile from a local install? Both the online and mobile versions report themselves as 64-bit Linux, which is presumably the Mathworks server running behind the scenes. Both also have an enviroment variable MW_DDUX_APP_NAME that does not appear on Mac or Windows installs, with the very telling value MATLAB_ONLINE. My assumption is that a local Linux install would not have that variable, and if a local server did, the value would be different (unless one was running MATLAB Online behind a firewall).
So far I haven't found a simple way of separating online and mobile versions, apart from a try/catch block containing a command that does not work on the latter (such as uifigure). That's not very robust--is there a better way?
4 Comments
Steven Lord
on 24 Sep 2025 at 17:11
I have a graphical user interface that works well on local installs (at least Mac and Windows, Linux not yet tested), partially works in MATLAB Online, and cannot work on MATLAB Mobile.
What limits the ability of that UI to work in MATLAB Online and what prevents it from working on MATLAB Mobile? In the past I would have suggested using the usejava function to detect if certain types of UI capability were present, but I'm not sure that would solve the problem in the scenario you described. But if it's something else (an inability to call system to make changes to the OS configuration, for example) that might be checkable via a different mechanism.
Accepted Answer
More Answers (0)
See Also
Categories
Find more on Startup and Shutdown in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!