So my questions is:
Is there a way to evaluate by matlab-compiled standalone executable
code an m-file that is only known at runtime (and not at compile
time)? Or is this impossible in principle?
Thanks
Hannes
I have similar needs - want to pass as argument .m file
creted by Simulink.Bus.save() to stand-alone (MATLAB
Compiler), process it and use its return result which is
cell array decribing Simulink.Bus objects. I use them to
generate Embeded Matlab code and then compile it to C by
emlc (2007b).
Did you find solution? Any thouths?
Thanks,
Emil
"Hannes Rieser" <hannes...@datacon.at> wrote in
message <ef460...@webcrossing.raydaftYaTP>...
I was hoping someone else will come out a solution for this.
Thanks,
"Hannes Rieser" <hannes...@datacon.at> wrote in message
<ef460...@webcrossing.raydaftYaTP>...
i) Use "inline" function to define right hand side function
defined in m file.
ii) Use "nested" function.
However, these two methods are not computational efficient
ways if you have to call the user-defined function file
recursively since they are using eval command to evaluation
expression in string format.
So the best way is to rewrite associated command in another
language such as c or c++ and compile it to matlab-readable dll.
Thanks,
Gang
"Hannes Rieser" <hannes...@datacon.at> wrote in message
<ef460...@webcrossing.raydaftYaTP>...