Main Content

Web App Limitations and Unsupported Functionality

When packaging a MATLAB®app into a web app consider the following functional limitations. Using certain functions may result in an error or unexpected behavior.

Behavior Differences

Because a deployed web app is hosted on a server, functions that use system information have access only to server-side information, not client-side information. In addition, the web app is displayed in a browser window as opposed to a separate figure window. As a result, certain functions and properties behave differently in a deployed web app than on your local system. This table lists some of the differences that are most relevant to app building workflows.

Category Limitations
Graphics root object properties

TheMonitorPositions,PointerLocation,ScreenDepth,ScreenPixelsPerInch, andScreenSizeproperties of thegroot对象帐目in server-side information, not client-side information.

Figure properties

TheCloseRequestFcn,Visible,WindowState, andWindowStyleproperties have no effect in a web app.

You can specify the initial figure size using thePosition要么InnerPositionproperties, but programmatically resizing the figure by setting these properties while the app is running might result in unexpected behavior.

File dialog boxes

Although you can upload and download files from a local system in a deployed web app usinguigetfileanduiputfile, there are some limitations:

  • You cannot download files while an external application is writing them.

  • You cannot specify the default path or file name.

System commands Commands that return system information, such ascomputer,ispc,isunix,ismac, andlistfonts, return server-side information, not client-side information.

Unsupported Functionality

Some functionality is not supported in deployed web apps. This table lists the unsupported functionality that is most relevant to app building workflows.

Category Not Supported
Multiwindow apps

Multiple calls tofigure要么uifigureare not supported.

In addition, functions that create dialog boxes that appear as a separate window are not supported. These functions includedialog,msgbox,errordlg,warndlg,帮助,listdlg,questdlg,inputdlg,uisetcolor, anduisetfont. However, functions that create dialog boxes within a figure window, such asuialert,uiconfirm, anduiprogressdlg,得到支持。金宝app

File dialog boxes Opening a folder selection dialog box on the client usinguigetdiris not supported.
Saving and printing

Theprint,printpreview, andexportappfunctions are not supported.

Plotting functions Thewordcloudfunction is not supported.
Axes toolbar interactions Data brushing is not supported.
Copy and paste Copying and pasting text to and from the system clipboard using theclipboardfunction is not supported.
Project features Project features such asmatlab.project.createProject.andmatlab.project.loadProjectare not supported.
OLE Automation Theactxserverfunction is not supported.

This unsupported functionality is in addition to App Designer graphics limitations. For more information, seeDisplay Graphics in App Designer.

相关话题