Drawing a half-wave sinusoid in Simulink with sine and zero sections

1 reply · 2K views · last reply
cherylt
Messages
1
Reaction score
0
Dear all, I am pretty bad at Simulink and I want to draw out a half wave sinusoid with the equation:
I(t)=360sin(pi*t/0.4), 0<=t<=0.4
I(t)= 0 , 0.4<t<=1

Any help or suggestions?
I've tried using the Sine block with amp=360 and freq=7.85 but the graph looks weird.
I want to get the graph in blue but only managed to get the one in yellow.
Simulink scope plot of two periodic signals against time from 0 to about 2, y-axis 0 to 400: a thick blue curve of rounded half-wave pulses and a thin yellow piecewise-linear curve of similar peaks near 350, offset in phase.
 
Last edited: