Run app programmatically
Run Previously Installed App
Assume you installed two apps,
PlotData programmatically, using its ID.
Get IDs of all installed apps.
ID Name ------------------- ---------------- setsliderAPP setslider PlotDataAPP PlotData
appid — ID of custom app
character vector | string scalar
ID of custom app you want to run, specified as a character vector or string scalar.
The ID of a custom app is returned when you install it. You can use
matlab.apputil.getInstalledAppInfoto get the ID after you have installed an app.
When a custom app runs, MATLAB® adds any folders it needs to have added to the path, as identified when the app was packaged. When the app exits, MATLAB removes those folders from the path.
You can run multiple, different custom apps concurrently. However, you cannot run two instances of the same app concurrently.
Introduced in R2012b