I hava problem when I open exe file

2 views (last 30 days)
duna saleh
duna saleh on 21 Nov 2020
Answered: colordepth on 23 Mar 2025
I do my app disgner in 2020b matlap
and when I send exe file to matlap 2016 It does not open
;(
Error using app5
'matlab.ui.control.Image' is not a valid class name.
Error in app5App/startApp (line 63)
obj.AppHandle = eval('app5');
Error in app5App (line 40)
startApp(obj)
Error in appinstall.internal.runapp>execute (line 78)
out = evalin('caller', [script ';']);
Error in appinstall.internal.runapp>runapp13a (line 57)
outobj = execute(fullfile(appinstalldir, [wrapperfile 'App.m']));
Error in appinstall.internal.runapp>runcorrectversion (line 36)
appobj = runapp13a(appinstalldir);
Error in appinstall.internal.runapp (line 18)
out = runcorrectversion(appmetadata, appentrypoint, addonmetadatadir);
Error using app5
'matlab.ui.control.Image' is not a valid class name.
Error in app5App/startApp (line 63)
obj.AppHandle = eval('app5');
Error in app5App (line 40)
startApp(obj)
Error in appinstall.internal.runapp>execute (line 78)
out = evalin('caller', [script ';']);
Error in appinstall.internal.runapp>runapp13a (line 57)
outobj = execute(fullfile(appinstalldir, [wrapperfile 'App.m']));
Error in appinstall.internal.runapp>runcorrectversion (line 36)
appobj = runapp13a(appinstalldir);
Error in appinstall.internal.runapp (line 18)
out = runcorrectversion(appmetadata, appentrypoint, addonmetadatadir);
Error using app5
'matlab.ui.control.Image' is not a valid class name.
Error in app5App/startApp (line 63)
obj.AppHandle = eval('app5');
Error in app5App (line 40)
startApp(obj)
Error in appinstall.internal.runapp>execute (line 78)
out = evalin('caller', [script ';']);
Error in appinstall.internal.runapp>runapp13a (line 57)
outobj = execute(fullfile(appinstalldir, [wrapperfile 'App.m']));
Error in appinstall.internal.runapp>runcorrectversion (line 36)
appobj = runapp13a(appinstalldir);
Error in appinstall.internal.runapp (line 18)
out = runcorrectversion(appmetadata, appentrypoint, addonmetadatadir);
Warning: Division by zero when processing GPSLatitude. The value has been set to NaN.
Warning: Division by zero when processing GPSLongitude. The value has been set to NaN.

Answers (1)

colordepth
colordepth on 23 Mar 2025
Image components were introduced in MATLAB R2019a and are not available in R2018b or earlier versions. To address this issue, open your application in MATLAB R2020b and use the "Save Copy As" feature to save it in a format compatible with your target MATLAB version.
For detailed instructions, please refer to the following documentation for "Compatibility Between Different Releases of App Designer": https://www.mathworks.com/help/matlab/creating_guis/compatibility-between-different-releases-of-app-designer.html.

Categories

Find more on Strategy & Logic 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!