export(M)
M
See the IRIS model language keyword !export for help on how to write carry-around m-files in model files.
!export