# simulation function

A function that defines the behavior of a block such as computing outputs and states during a simulation. A simulation function is generally written in C, but can also be written in OML. Only one simulation function is designated when a block’s simulation structure is instantiated.