MATLAB Creating Graphical User Interfaces

(Barry) #1

16 Packaging GUIs as Apps


You can include external interfaces, such as MEX-files, ActiveX, or Java® in the
.mlappinstall file, although doing so can restrict the systems on which your app
can run.
5 Describe your app.

Minimally, specify an app name. If you install the app, MATLAB uses the name for
the .mlappinstall file and to label your app in the apps gallery.

Click the icon to the left of the App Name field to select an icon for your app or to
specify a custom icon. MATLAB automatically scales the icon for use in the Install
dialog box, App gallery, and quick access toolbar.

After you create the package, when you select a .mlappinstall file in the Current
Folder browser, MATLAB displays the app description in the Details panel. If you
share you app in the MATLAB Central File Exchange, the description also displays
there. The screen shot you select represents your app in File Exchange.
6 Click Package.

As part of the app packaging process, MATLAB creates a .prj file that contains
information about your app, such as included files and a description. The .prj
file enables you to update the files in your app without requiring you to respecify
descriptive information about the app.
7 In the Build dialog box, note the location of the installation file (.mlappinstall),
and then click Close.

For information on installing the app, see “Install or Reinstall App” on page 15-5.
Free download pdf