I have a Simulink model running on External.
I have Matlab function block. In this block I want to save data in variables when i get a pulse signal during the simulation.