By using PWM I have converted some signal to pulses and inserted it into transfer function of
I then compared between the result of the original output and the output after using PWM (blue line is the original output and the yellow is due to PWM):
It can be seen that the output from the PWM is chattering.
The Simulink model looks as following:
The triangle is made by using the following points: (0,0.5) , (0.0025,0) , (0.0075,1) , (0.01,0.5)
Also, by increasing the frequency of the sine wave the result seems to be better:
Is there some way to make it with smaller standard deviation for the results?