Hey, It shows error here: y_freq = fftshift(fft(y))*dt;
because matrix dimensions doesn't agree here: f = -Nyq : df : Nyq;
I bypass that somehow, and I saw that our sinals in frequency spectrum looks exactly the same(I draw it without logarithm scale and for positive frequencies, thats why I multiply with 2 here F=(fft(y))*2/N;), but only difference is that ur values are 20 times smaller, for same frequency u get 20 times lower amplitudes. Why?