Standalone Desktop Apps in App Designer
Show older comments
Hello Engineers,
Recently, I designed an Application using MATLAB App Designer. I used various Matlab functions to process some data. After compiling and packaging the app into a Standalone Desktop App, the app couldn't run properly. It seems that the callbacks that use Matlab functions such as plot, polarplot, and surf don't work. Can anyone please interpret this problem to find out what I should do?
Thanks
2 Comments
Mario Malic
on 31 Dec 2020
Hi Taha,
You should run the app with Console Window on, you'll get output and the errors that happen during the run. Please use search tool to find out how to enable it.
Taha Adel
on 31 Dec 2020
Accepted Answer
More Answers (1)
Cris LaPierre
on 31 Dec 2020
0 votes
It is possible to create an app that can run on a system that does not even have MATLAB installed, so the errors you report seem odd. Can you confirm that is the case after following the instructions provided here? If so, please share your standalone app (use the paperclip icon to attach it).
15 Comments
Taha Adel
on 31 Dec 2020
Cris LaPierre
on 31 Dec 2020
Let's start with just the error messages. Can you you copy/paste the error messages you are getting?
Taha Adel
on 31 Dec 2020
Cris LaPierre
on 31 Dec 2020
Does the app run correctly in MATLAB? When you run it from within add designer?
What is your MATLAB version and OS?
Taha Adel
on 31 Dec 2020
Cris LaPierre
on 31 Dec 2020
Edited: Cris LaPierre
on 31 Dec 2020
And what OS are you trying to run the standalone app in?
Can you attach your mlapp file? I can at least see if I can duplicate the issue here. If there is a datafile, please include that (or something that can be used to text the app). Use the paperclip icon to attach them.
Taha Adel
on 31 Dec 2020
Taha Adel
on 31 Dec 2020
Cris LaPierre
on 31 Dec 2020
Here's the error message I see.
Error using matlab.ui.control.internal.model.mixin.IconableComponent/set.Icon (line 54)
You have specified a file that cannot be found or is not an image.
Specify a file name that is on the MATLAB path, or use a full or relative path.
Error in main/createComponents (line 1268)
app.PlotDataButton.Icon = 'ic_graphic_eq_48px.png';
Error in main (line 2111)
createComponents(app)
Taha Adel
on 31 Dec 2020
Taha Adel
on 31 Dec 2020
Cris LaPierre
on 31 Dec 2020
Do you include the icons as additional files in your standalone application?
I encountered a new error when I try to plot the 4th antenna option (Dolph-Tshebysceff Arrays). It occurs in the following function:
function [AF, z] = dolph(app, d, N, alpha, R)
Towards the end of the function, it tries to use a function or varilabe Tsheb. However, this does not appear to exist either in your app, or as a function I can find in MATLAB.
Undefined function 'Tsheb' for input arguments of type 'sym'.
Error in main/dolph (line 375)
AF0 = Tsheb(m,z1);
Error in main/PlotDataButton_4Pushed (line 750)
[AF,Z] = dolph(app,d,N,alpha,R);
Error using matlab.ui.control.internal.controller.ComponentController/executeUserCallback (line 335)
Error while evaluating Button PrivateButtonPushedFcn.
Taha Adel
on 31 Dec 2020
Taha Adel
on 1 Jan 2021
Cris LaPierre
on 1 Jan 2021
That is correct. It appears you cannot include any functions from the Symbolic Toolbox in a standalone application.
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!

