How to use pwelch for PSD?
Show older comments
hi everyone, Do you know about pwelch function? I did a lot of searching on google but didn't find any documentation that explains correctly for me to understand. When I want to use the pwelch function, do I have to care about the window or can I leave it at the default. For an example:
If I want to use window for eeg signal, what kind of window can i use for best perform? and what are the parameters passed in?
Hope I don't bother you,
[pb,f] = pwelch(Data(1,:),hamming(256),[],[1 256],128);
[pb,f] = pwelch(Data(1,:),[],[],[],128);
2 Comments
Bora Eryilmaz
on 12 Dec 2022
Edited: Bora Eryilmaz
on 12 Dec 2022
I recommend using pspectrum instead, which is more straighforward to use. It internally uses the Kaiser window, which is controlled by the "Leakage" parameter of the pspectrum command. Kaiser window is pretty optimal when it comes to selecting a window for spectrum computation.
Accepted Answer
More Answers (0)
Categories
Find more on Spectral Estimation in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!