Matlab Code for remaining output in interval of time
I am using PSCAD interface with Matlab programming, I want to make a Script to maintain a signal for a duration of time (signal come from Pscad) Assume: an Input On and OFF in 30- 100ms and I want the Output of the Input will be kept for an interval of time (Ex: 5 mins) (similarly with the Mono Stable module on Pscad Library ). I already search for some idea on the Internet but it does not work well. Does anyone know about this issue? I think about the Automatical Decrement Timer ( count from 300 seconds to 0 and then reset ). Does anyone know how to create the code for this timer?