Skip to content

"fft method" for dataset II #63

@ShivaNaghsh

Description

@ShivaNaghsh

Hi,
I am working with Dataset II, and I want to see "the effct of Stimulus frequency" on "each Trial" using "fft method" in MATLAB. I mean, I know the label of each Trial, so I know the stimulus frequency used, and I expect to see a significant Peak regarding "the effect of Stimulus frequency on the EEG signal of each Trial " on the "frequency plot" (for example: a peak on 10 Hz or 6.66 Hzz or ...); however, I can't see such a peak at all. I am wondering why I can't see such a peak!!!
The code I used to apply fft to signals of each trial is this:

close all;
lbl=sess.trials{1,55}.label; %oz num is 126
sig=sess.trials{1,55}.signal(126,:); %oz num is 126
fs = 250;
x = sig;
nfft = 2^( nextpow2(length(x)) );
df = fs/nfft;
f = 0:df:fs/2;
X = fft(x,nfft);
X = X(1:nfft/2+1);
plot(f,abs(X))
xlim([0 20]);

Thank you in advance for any help.
Best regards

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions