MATLAB: How do i make EXE file to read the excel file

standalone executables

I have packed an m-file which is reading an excel file. after copying the EXE together with the excel file to a folder, the exe does not seem to read the variables off the excel file in the same folder. how can i solve that? Thanks

Best Answer

Programs that are compiled with MATLAB Compiler do not use the directory of the .exe as their default directory. Instead, they create a temporary directory and expand the archive into that and run from that temporary directory.