How to keep data connections when building standalone .exe
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Vassilis
am 30 Sep. 2013
Kommentiert: Vassilis
am 30 Sep. 2013
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 Kommentare
Akzeptierte Antwort
Weitere Antworten (1)
Walter Roberson
am 30 Sep. 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 Kommentare
Siehe auch
Kategorien
Mehr zu Database Toolbox finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!