pmusic example to fix
Closed this issue · 1 comments
cokelaer commented
Check this example.
Frequencies should be 0.2 and 0.257 in the plot
x = cos(0.257*pi*n) + sin(0.2*pi*n) + 0.01*randn(size(n));
p = pmusic(x, 8,4); p(); p.plot()
p = pmusic(x, 8,4); p(); p.plot()
cokelaer commented
nope, this is correct because the data is real. So, the range is 0 to 0.5 hence one has to multiply by 2 to get back the 0.2 and 0.257 values.