I am using the Application Compiler to compile a MATLAB function, which loads a MAT file. I want to be able to change the MAT file after the application has been compiled and then load the new parameters. In R2016a, I was able to not add the MAT file in the "Files required for your application to run" but to add it under "Files installed for your end user". Then the file would be loaded at run-time.
In R2016b or later, the MAT file is automatically detected by the dependency analysis and cannot be removed from the list "Files required for your application to run". If I try to remove the file, it will appear there again after a second.
I am compiling the following function:
function test()% test.mat containing the scalar value "tmp=1"
load('test.mat')disp(tmp)
and the corresponding MAT file "test.mat" is located in the same folder.
How can I exclude the file "test.mat" from the automatic dependency analysis?
Best Answer