I am trying to get the time at which a specific condition in my simulation occurs. Specifically, in my simulink model I am comparing two inputs and I need to save to the workspace the time at which they equal each other. Any help is greatly appreciated!
You can do this with the following 2 steps:
The times at which the comparison is true will get written (as a vector) to the specified workspace variable.