Will my App Designer app be compatible in previous and future releases?

14 views (last 30 days)
I have created an app using matlab app designer 2019 version.
Can i run the same app in previous versions of Matlab like 2016a,2017a etc?

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 11 Jan 2024
MATLAB R2018a introduced the ability to save App Designer applications to a previous release of MATLAB. The details of how to do so are described on the following page: https://www.mathworks.com/help/matlab/creating_guis/compatibility-between-different-releases-of-app-designer.html
This functionality is similar to the "Export Model To > Previous Version" option in Simulink.
Generally, applications developed in a given release are expected to work in later releases as well. If any incompatibilities are introduced, the Code Compatibility Analyzer is a useful tool that you can use to identify potential compatibility issues in your existing code when you update MATLAB: 
Running an app
You do not need to use the above functionality to run an app in an older version of MATLAB.
  • If the newer app uses a new component or functionality that the older release does not yet support, there will be an error when trying to run it in the older release.
  • However, if the newer app only uses features that are supported by the older MATLAB release, the app should be runnable in all prior releases of MATLAB without needing to perform the "Save Copy As".
A simple way to ensure compatibility when running is to create apps as web apps: https://www.mathworks.com/help/compiler/webapps/create-and-deploy-a-web-app.html
Web apps are created against one version of MATLAB and that version of MATLAB is on the server. End users can access Web Apps (including new features) regardless of which version of MATLAB they are running on their personal machine.
Editing an app
After saving a copy of an app to an older release, any incompatible functionality (components that do not exist in the previous release) will be removed from this copy when you open it in App Designer.
For example, if you create an app in R2017b that contains a "uitree" and save a copy as an R2017a app, the "uitree" will be removed when you open the R2017a version. This happens because releases prior to R2017b do not support "uitrees". However, if you create an app in R2018a that uses a menu and open it in R2017b, the menu would not be removed because "uimenu" is supported in R2017b.
Saving a copy of an app to R2016a is not in the list of "Save Copy As".  It is still supported but requires a patch to be installed in order to work.  You will need this patch if you want to edit the app in App Designer in R2016a: https://www.mathworks.com/support/bugreports/1397819?s_tid=srchtitle
Performing "Save Copy As" to an older version is not an option when using R2023a Update 5 or before or R2023b Update 1. This is a known issue that was resolved in R2023a Update 6, R2023b Update 2, and is resolved in R2024a.
With Simulink
When using an app to interact with Simulink, it is important to ensure that both the App Designer and Simulink functionalities are supported on the releases being used. For example, if you are changing a specific property of a block, you will want to check that the property and the accessing function exist and are supported on all of the releases you are using. Then, you can place any necessary code changes that resolve incompatibilities into a callback function for an app component that is supported across all the releases (like a "uibutton"). Being careful about coding the app in this way should eliminate any incompatibilities between the releases.
There currently is no support for Web Apps to interact with previous versions of Simulink.

More Answers (1)

Vishnu Vardhan
Vishnu Vardhan on 21 Jun 2019
Hi Sampath
There is no problem in running the new app in previous versions but if you want to edit in the previous version then it throws an error. There is also a way to overcome that error.
This link might help you to overcome that error.
  1 Comment
Andrew Scheich
Andrew Scheich on 16 Apr 2021
Hi Vishnu,
I'm having a slightly different problem where an app created in 2017a runs just fine in 2017a, but when it's opened in 2020a it doesn't want to run correctly. I'm referencing a database to load files from and it will prompt me saying no files found when they're selected. Any ideas would be helpful?
Thanks,
Andrew

Sign in to comment.

Categories

Find more on Develop Apps Using App Designer 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!