Read the current exe file name after compiling
Mostrar comentarios más antiguos
Hello everyone,
I converted an m file to exe, and it(exe) creates a copy of its own with different name. According to their name, they should do different tasks. Now when I try to run the exe file with 'mfilename' it reads the original m file name, not the exe file name. Can anyone show me the right direction?
Thanks
3 comentarios
Rik
el 4 de Nov. de 2021
I have no clue whether it is even worth trying, but what does matlabroot return in a compiled application?
Since compiled applications will unzip to a temporary folder, I don't know whether it is even possible in the first place to retrieve the file name.
Mubin R
el 4 de Nov. de 2021
Daniele Sonaglioni
el 4 de Nov. de 2021
I think that the problem is in which way you create your exe file: probably creating a standalone app will solve your problem.
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre MATLAB Compiler en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!