Where are "files installed for your end user" saved in the installation directory using MATLAB Compiler?
14 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
sepand soltani
el 26 de En. de 2020
Respondida: Stefanie Schwarz
el 21 de Oct. de 2024
I have a few matrices that I want to load in the app using the load command.
Temporarily the files are saved like this:
load C:\Users\sepand\Documents\MATLAB\BY.mat;
what path should I set them to so that they would be accessible to the main program after compilation?
0 comentarios
Respuesta aceptada
Walter Roberson
el 27 de En. de 2020
Make sure that they are in your current directory at the time you use MATLAB Compiler, and do not use a path when you load. Or if you do use a path make sure it is ctfroot()
1 comentario
Will Reeves
el 29 de Ag. de 2024
Hi, Sorry, probably misunderstanding but this doesn't seem to be what I'm experiencing.
I've included a file and a folder in the "files installed for your end user", and when the app is deployed the files are located in the installation directory correctly:
....\Program Files\[company name]\[app name]\application
ctfroot isn't helpful as it's obviously a path to somewhere not helpful, I want to specify full paths and not "just use files that are found on the path"
pwd isn't helpful either as it seems to depend on where you launch the application from. For example, launching from the link created on the desktop returns the the desktop path, which is extremly unhelpful. Running the program directly from the "application" folder does work, but that's not a solution.
Any help would be apprectiated!
Más respuestas (1)
Stefanie Schwarz
el 21 de Oct. de 2024
See also:
How can I find the directory containing my compiled application?
0 comentarios
Ver también
Categorías
Más información sobre Introduction to Installation and Licensing 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!