Hi,
The following blocks might be helpful in creating your desired waveform model with instant turn on and turn off instead of slope-
1)Step: The “Step” block outputs a signal that changes abruptly from an initial value to a final value at a specified time, creating an instantaneous step without any slope
2)Waveform Generator: The “Waveform Generator” block allows you to define various waveforms, including step, pulse, square, and more, using signal notations.
3)Timer: The “Timer” block generates signals that change at specified transition times, producing logical signals (0 or 1) with abrupt transitions.
You can refer to the following documentation links to learn more about these blocks:
The following MATLAB Answer might also prove helpful:
Hope this helps!
