Are you sure that your formula is correct? You pass into cosine function not pi but pi^2 when you plot. You pass into variable t the vector x when you plot and this vector x is already the range of pi.
if you use instead
y =@(t) 1.11*cos(100000*t) + 0.5*cos(98000*t) + 0.5*cos(102000*t); x = -2*pi:0.1:2*pi;
plot(x,y(x))
you take
if the function is correct you have to take another interval
Best Answer