simulink.compiler.setPostStepFcn
R2026bRegister callback function to execute after each time step in simulation
Syntax
Description
simin = simulink.compiler.setPostStepFcn(
registers the post-step callback function simin,func)func on the
Simulink.SimulationInput object simin. The post-step
callback function executes during simulation after each time step.
simin = simulink.compiler.setPostStepFcn(
reduces the execution frequency of the post-step callback function by the decimation factor
simin,func,Decimation=d)d.
For an example of an app that implements a post-step callback function, see Visualize Live Simulation Results in Deployed Applications
Input Arguments
Version History
Introduced in R2020b