How to do fft to analysis RAW data from neurosky Mindwave ?

8 visualizaciones (últimos 30 días)
Bambang Handoko
Bambang Handoko el 1 de Jul. de 2019
Editada: Sajitha S el 14 de En. de 2020
Hi, i have a problem on my script, i can't do a fft to analyze RAW data. this raw data i get by recording using my Neurosky Mindwave EEG device. after i record a brainwave, i save it as a workspace, to be analyze later. i use Matlab 2010a.
can anyone help me to solve this problem ?
when i run it, i got this error in command window :
x =
89 133 36 -219 84 33 53 59 17 27 117 68 76 114 36 86 138 45 -5 138
??? Index exceeds matrix dimensions.
Error in ==> fftFIX at 7
plot(Fs*t(1:50))
this is the script that i use :
Fs = 1000; % Sampling frequency
T = 1/Fs; % Sample time
L = length(data_RAW); % Length of signal
t = (0:L-1)*T; % Time vector
% Sum of a 50 Hz sinusoid and a 120 Hz sinusoid
x = data_RAW
plot(Fs*t(1:50))
title('RAW Brainwave Signal')
xlabel('Time (seconds)')
NFFT = nextpow2(L); % Next power of 2 from length of y
Y = fft(NFFT)/L;
f = Fs/2*linspace(0,1,NFFT/2+1);
% Plot single-sided amplitude spectrum.
plot(f,2*abs(Y(1:NFFT/2+1)))
title('Single-Sided Amplitude Spectrum of y(t)')
xlabel('Frequency (Hz)')
ylabel('|Y(f)|')
  3 comentarios
ali hussein
ali hussein el 19 de Dic. de 2019
Editada: ali hussein el 19 de Dic. de 2019
i have the same question, i want to use FFT for convert the Neurosky EEG raw data because i want to use it in control a drone. it is is easy for using in freq domain..... but i use processing to write the code
Sajitha S
Sajitha S el 14 de En. de 2020
Editada: Sajitha S el 14 de En. de 2020
I am using Neurosky EEG ,How can i know store the raw data into my dataset plase can you help me.

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre EEG/MEG/ECoG en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by