Standalone executable is not reading files from the same directory
显示 更早的评论
Hi,
I am trying to create a standalone executable using the application compiler. The main script takes in the data from a file the same directory, then does some algebra with it and saves it in another file in the same directory. The following is a simple version of the code I have in mind.
disp('Start Script');
data = importdata('InputFile.dat');
NewData = data*5;
save('OutputFile.mat', 'NewData');
disp('End Script');
However, when I run the standalone executable it reads the data that was present in the InputFile.dat at the time when the executable was created. It does not read the contents of the file at the time when I ran the application. Further, after running the code, I cannot locate the output file as well. How do I make the standalone application read contents from the InputFile at real time as well as save the file in real time?
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 MATLAB Compiler 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!