Hi,
I would implement a sine wave with frequency that increases from 0 to 50 and stay constant afterwards. The model i used is on the top left and frequency input on bottom left. However, the output results( firgure right) i obtained contains a frequency higher than 50Hz but I don't know why. What went wrong?
matlab function codefunction y = sin(f,t,ps)%generates a sine wave of frequency f and phase shift of ps (in radians)
y = sin(2*pi*f*t+ps);
Here's my model
Best Answer