My main function m file built an m file under a temporary
directory upon execution of main file. This m file was used
as a function to solve an ODE system. This runs well under
matlab environment.
However, after compilation using "mcc -m ***.m", runing the
***.exe has the problem to solve ODE system. The error
message prompted as follows "The matlab file does not have
proper information and may be corrupt." Then I tried
another way by compilation of main m file provided ODE
function file initially rather than generation of new m file
during execution of stand-alone application. The executable
file runs well.
I guess the reason is that new generated m file is not
encrypted by "mcc" command so that the executable file can
not recognize new m file. However, The generation of new ODE
function file is required for my application.
So My question is that if there is any other way to compile
this kind of m file to a stand-alone application.
Any help on this is highly appreciated. I am looking forward
to any comments or suggestion.
Thanks,