From: Guoliang Zhang on
there is documented hookpoints you might want to check out the online doc.

on top of my head, you can set_param(modelname, 'PostCodeGenCommand',
'yourMfuncName')

hth

GZ

"P. Graebel" <pgraebel(a)stud.fh-dortmund.de> wrote in message
news:fvpshv$gm1$1(a)fred.mathworks.com...
>I need to call custom matlab functions before and after
> running the RTW build process. E. g. I need to create
> additional source code files from the model that is selected
> for code generation.
>
> Back to Matlab 6.5 I manipulated simprm.m to reach this
> functionality (case block 'RTWPage'). But inserting own code
> there is tricky and a bad hack. Generally simprm seems to be
> obsolete in later Matlab releases.
>
> Is there a better solution to hook in there?
>