Compute the average of pwelch

7 vues (au cours des 30 derniers jours)
Tu Nguyen le 6 Avr 2022
Modifié(e) : Tala le 6 Avr 2022
Hi all
I have eeg signal with 129 samples,
I computed each signal, now I need to take the average of all 129 samples and plot that average. How can I do that?
I reeally appreciate that
clc;
close all;
clear;
[row columm] = size(eeg);
for i = 1:columm
[ppx{i}, f{i}] = pwelch(eeg(:,i),200,100,200,Fs);
figure(1);
plot(ppx{i});
hold on
end
0 commentairesAfficher -2 commentaires plus anciensMasquer -2 commentaires plus anciens

Connectez-vous pour commenter.

Réponses (1)

Tala le 6 Avr 2022
not sure what the avarage of pwelch means! maybe avarage energy of your signal? there are better ways to do so...anyways...you could just this after your hold on command.
plot(mean(ppx{i}));
I would add f{i} as well in my plots. meaning plot(f{i}, ppx{i}) to see the frequencies on your plot
6 commentairesAfficher 4 commentaires plus anciensMasquer 4 commentaires plus anciens
Tu Nguyen le 6 Avr 2022
I got it. Appreciate you a lot
Tala le 6 Avr 2022
Modifié(e) : Tala le 6 Avr 2022
my pleasure

Connectez-vous pour commenter.

Catégories

En savoir plus sur Biomedical Signal Processing dans Help Center et File Exchange

R2021b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by