kgl_13gr
Member level 5
Hello. I have some problem here and either my knowledge is not enough or something I cant figure out is wrong. Its pretty simple I suppose.
I enter in Matlab the signal x=sin(2*pi*1000*t)+0.05*sin(2*pi*1e5*t)
where t=1:1e-8:0.002; and try to estimate the power spectrum with the following m-file (which is not mine).
The question is: This signal isnt supposed to have a PSD with two peaks one at 1kHz and one at 100kHz? The algorithm's output gives only the 100kHz peak. Thats basically the question. If you have time to look at the m file too that would be great! Thanks a lot.
I use the syntax: spektrumfromdata(x,1e3,1e8,1000,1)
I enter in Matlab the signal x=sin(2*pi*1000*t)+0.05*sin(2*pi*1e5*t)
where t=1:1e-8:0.002; and try to estimate the power spectrum with the following m-file (which is not mine).
The question is: This signal isnt supposed to have a PSD with two peaks one at 1kHz and one at 100kHz? The algorithm's output gives only the 100kHz peak. Thats basically the question. If you have time to look at the m file too that would be great! Thanks a lot.
I use the syntax: spektrumfromdata(x,1e3,1e8,1000,1)