Compiling Code Dependent on External Files
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
The script I am trying to compile modifies existing external files (i.e. Excel files). When I compile the script and add the external files to "Files required for your application to run," how are these files stored in the compiled program? The reason I am asking is that these external files reference each other based on location, so the script wouldn't work if their relative locations change in the compilation.
The obvious alternative is to distribute the compiled script and the external files as separate attachments, and then use uigetfile to have the user retrieve them manually, but this is less convenient.
0 Kommentare
Antworten (1)
Robert Cumming
am 25 Jul. 2014
if i recall the files will be extracted into the same directory as your exe - so you could work the relative paths from that scenario.
3 Kommentare
Robert Cumming
am 25 Jul. 2014
did you add the files in the "Files required for your application to run" or the section "Files installed with you application"?
Adding the files to the 2nd option should result in the files being located in the same dir as your exe.
Siehe auch
Kategorien
Mehr zu File Operations finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!