addition of image files during compiling to make a standalone app
5 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
SUMAN
el 10 de Ag. de 2025
Comentada: Image Analyst
el 18 de Ag. de 2025
I have created an app design in MATLAB. This app shows the images in the right tab for choosen type in the left tab. Images are stored in the current folder. while running app in MATLAB, app is running smoothly without any error and also showing images as per requirement. then I used share option to make a standalone app. in the MATLAB compiler section, I have uploaded all the necessary files including images and clicked on packages. It made the app in a specific project folder. but after running the application from the folder named 'for_testing', images are not showing but the other things are working smoothly.
even after adding the image files in the the files required in the application to run, why the image is not showing in standalone app.
0 comentarios
Respuesta aceptada
Image Analyst
el 11 de Ag. de 2025
Did you use the deploytool or the mcc command? If you used the mcc command, did you use the -a option to attach your files. I always use the mcc command and usually don't include files. I use the Centurion Setup program to bundle my executable and all my other files that are needed into an installation package. Th Centurion Setup program is by far the best, easiest, and most intuitive of the installation package building programs available. That way I know what files are getting shipped and where they will live. With the compiler, it's a mystery. Anyway, see the FAQ:
and
and it may give you some clues about the mystery of where files get extracted and stored when you deploy a MATLAB executable. It's a long, complicated story that I can't elaborate on now.
6 comentarios
Image Analyst
el 18 de Ag. de 2025
I still see semicolons. Did you not see my instruction where you leave off the semicolon so that you can see the actual filename in the console window? Then you can see if it's really the location you expect. And use fullfile with img_1. And why do you assign img1 (no underline) in the "if deployed" only to immediately reassign it after the try? And it can lead to confusion if you have both img1 and img_1, similar filenames even though neither one is really an image variable (they're strings!).
Más respuestas (0)
Ver también
Categorías
Más información sobre Standalone Applications en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!