I'm new to Matlab compiler. I've got a simple GUI with a button that when it's pressed it calls a m-function (myfunction.m). This function simply return a number that is then showed with a message box. If I compile as:
mcc -m myfile.m
everything works fine. But if I add to myfunction.m this code:
load mydata.mat
The compiled file doesn't work, if I click the button then the message box doesn't appear. How should I treat load command when I compile with matlab?
Inside Matlab I often locate the path with
which
:Not sure if it works when compiled tough.