How to keep data connections when building standalone .exe
2 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
I have a matlab program that consists of several functions, gui (.fig files) and some .csv files that are used as "databases" for a series of data that are used in the program. I want to compile this program with deploytool in order to make a standalone application, to run in a PC without matlab.
The created application works normally but it doesn't read the data from the database csv files. When I call the deploytool, I instruct it to also include the .csv files in the build. However, the resulting files is only an .exe and when I run it, it doesn't read the data from the csv's in its path rather than displaying the contents of them at the time of its creation.
Is there a way to include these files into the final program, and if they change (by another user/program) the standalone application to actually read them?
0 Commenti
Risposta accettata
Più risposte (1)
Walter Roberson
il 30 Set 2013
My suspicion is that you have a path problem as to where the csv files are located. See ctfroot() for information on determining which directory the executable was unpacked into.
0 Commenti
Vedere anche
Categorie
Scopri di più su Database Toolbox in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!