From: Pierre DANDRE on
Hello,

I am using of Matlab embedded function in Simulink. The compilation of my M-function is successful as well as the Simulink run.

Still, if I run again the simulink block in a different matlab path, a new compilation starts. Is there a way to indicate the path of already compiled M-files?

Many thanks in advance,

Pierre
From: Pierre on
"Pierre DANDRE" <pierre.dandre(a)external.thalesaleniaspace.com> wrote in message <hf5t0n$6lr$1(a)fred.mathworks.com>...
> Hello,
>
> I am using Matlab embedded function in Simulink. The compilation of my M-function is successful as well as the Simulink run.
>
> Still, if I run again the simulink block in a different matlab path, a new compilation starts. Is there a way to indicate the path of already compiled M-files?
>
> Many thanks in advance,
>
> Pierre

Just to precise that I use Matlab 2007a on Linux and that the "already compiled M-files" correspond to the generated Code (using stateflow at simulinl launch): file sfprj + file_name.mexa64.

The pb does not seem to occur on Windows.

Tks