Download MATLAB Creating Graphical User Interfaces PDF

TitleMATLAB Creating Graphical User Interfaces
LanguageEnglish
File Size6.7 MB
Total Pages500
Document Text Contents
Page 1

MATLAB®

App Building

R2017a

Page 2

How to Contact MathWorks

Latest news: www.mathworks.com

Sales and services: www.mathworks.com/sales_and_services

User community: www.mathworks.com/matlabcentral

Technical support: www.mathworks.com/support/contact_us

Phone: 508-647-7000

The MathWorks, Inc.
3 Apple Hill Drive
Natick, MA 01760-2098

MATLAB® App Building
© COPYRIGHT 2000–2017 by The MathWorks, Inc.
The software described in this document is furnished under a license agreement. The software may be used
or copied only under the terms of the license agreement. No part of this manual may be photocopied or
reproduced in any form without prior written consent from The MathWorks, Inc.
FEDERAL ACQUISITION: This provision applies to all acquisitions of the Program and Documentation
by, for, or through the federal government of the United States. By accepting delivery of the Program
or Documentation, the government hereby agrees that this software or documentation qualifies as
commercial computer software or commercial computer software documentation as such terms are used
or defined in FAR 12.212, DFARS Part 227.72, and DFARS 252.227-7014. Accordingly, the terms and
conditions of this Agreement and only those rights specified in this Agreement, shall pertain to and
govern the use, modification, reproduction, release, performance, display, and disclosure of the Program
and Documentation by the federal government (or other entity acquiring for or through the federal
government) and shall supersede any conflicting contractual terms or conditions. If this License fails
to meet the government's needs or is inconsistent in any respect with federal procurement law, the
government agrees to return the Program and Documentation, unused, to The MathWorks, Inc.

Trademarks

MATLAB and Simulink are registered trademarks of The MathWorks, Inc. See
www.mathworks.com/trademarks for a list of additional trademarks. Other product or brand
names may be trademarks or registered trademarks of their respective holders.
Patents

MathWorks products are protected by one or more U.S. patents. Please see
www.mathworks.com/patents for more information.

https://www.mathworks.com
https://www.mathworks.com/sales_and_services
https://www.mathworks.com/matlabcentral
https://www.mathworks.com/support/contact_us
http://www.mathworks.com/trademarks
http://www.mathworks.com/patents

Page 251

Create UIs Programmatically
• “Lay Out a UI Programmatically” on page 9-26
• “Create Menus for Programmatic Apps” on page 9-39
• “Create Toolbars for Programmatic Apps” on page 9-52
• “Create a Simple App Programmatically” on page 3-2
• “Write Callbacks for Apps Created Programmatically” on page 10-5
• “Callbacks for Specific Components” on page 7-11
• “Share Data Among Callbacks” on page 11-2

Page 499

MATLAB App Installer File — mlappinstall

MATLAB App Installer File — mlappinstall

A MATLAB app installer file, .mlappinstall, is an archive file for sharing an app
you created using MATLAB. A single app installer file contains everything necessary to
install and run an app: the source code, supporting data, information (such as product
dependencies), and the app icon.

An .mlappinstall file is a compressed package that conforms to the Open Packaging
Conventions (OPC) interoperability standard. You can search for and install
.mlappinstall files using your operating system file browser. When you select an
.mlappinstall file in Windows Explorer or Quick Look (Mac OS), the browser displays
properties for the file, such as Authors and Release. Use these properties to search for
.mlappinstall files. Use the Tags property to add custom searchable text to the file.

Related Examples
• “Package Apps From the MATLAB Toolstrip” on page 18-5

18-13

Page 500

18 Packaging GUIs as Apps

Dependency Analysis

When you create an app package, MATLAB analyzes your main file and attempts to
include all the files that your app uses. However, MATLAB does not guarantee to find
every dependent file. It does not find files for functions that your code references as
character vectors (for instance, as arguments to eval, feval, and callback functions). In
addition, MATLAB can include some files that the main file never calls when it runs.

Dependency analysis searches for the following types of files:

• Executable files, such as MATLAB program files, P-files, Fig-files, and MEX-files.
• Files that your app accesses by calling standard and low-level I/O functions. These

dependent files include text files, spreadsheets, images, audio, video, and XML files.
• Files that your app accesses by calling any of these functions: audioinfo,

audioread, csvread, daqread, dlmread, fileread, fopen, imfinfo,
importdata, imread, load, matfile, mmfileinfo, open, readtable, type,
VideoReader, xlsfinfo, xlsread, xmlread, and xslt.

Dependency analysis does not search for Java classes, .jar files, or files stored in a
scientific format such as NetCDF or HDF. Click Add files/folders in the Package Apps
dialog box to add these types of files manually.

18-14

Similer Documents