Hello, I want to make a power spectral density estimate using periodogram and welch method and I need to plot them in one graph,
I have this simple script (my data are different I just want this code to be simple):
n = 0:319; x = cos(pi/4*n) + randn(size(n)); pwelch(x) hold on periodogram(x,rectwin(length(x)),length(x))
The result is what it should be, but the graphs are in the same color, so it is unrecognizable what was done using pwelch and what using periodogram, how can I set different colours of the lines?
Thank you very much
Best Answer