MATLAB: How to compile a standalone application with external excel files

importing excel dataMATLABMATLAB Compilerruntime

I created a Matlab code that works with data from some excel files. I want to compile the code into a standalone application but the excel files need to remain outside as they are going to be constantly updated. The idea is to have the application work with the data from the excel and produce a different output as the excels get updated. Is there a way to compile while keeping the excels separate and thus able to be edited? Thanks.

Best Answer

If the files are constantly updated, they are not part of the compiled application. Therefore the solution is trivial: You do not have to include the files, but it is to either insert the path, where the files are found, or to use e.g. uigetfile to let the user choose the file location.