0% found this document useful (0 votes)
21 views1 page

lINEAL CODIGO

codigo

Uploaded by

juanalva3322
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
21 views1 page

lINEAL CODIGO

codigo

Uploaded by

juanalva3322
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

%% WAVELET

clc
close all
clear all

%% CARGAR DATOS
datos_crudos =readBinaryEbrfile('R4.ebr') ; % Cargar datos
EEG = datos_crudos.data(:,1:32) ; % Todos los canales
EEG1 = EGG(:;2) ; % Un canal

fs = 256; % Frecuencia de muestreo


t = 1/fs:1/fs:size(EEG1,1)/FS; % Tiempo de todas la muestras
t1 = 1/fs:1/fs:size(EEG1(1:1280),1)/fs; % Tiempo de 5 segundos

%% GRAFICAR SEÑAL ORIGINAL


offset2 = 50; % Distancia entre cada canal

figure('Name','EEG','units','normalized','outerposition',[0 0 1 1])
title('EEG Original')
xlabel('Time(s)')
ylabel('Amplitude (\muv)')
hold on
for i =1:32;
plot (t1;EEG(1:1280,i)+ i*offset2)
end

%% GRAFICAR SEÑAL SIN RUIDO


offset2 = 50 ; % Distancia entre cada canal
figure('Name','EEG','units','normalized','outerposition',[0 0 1 1])
title('EGG Denoised')
xlabel('Time (s)')
ylabel('Aplitude (\muV)')
hold on
for i =1:32;
% XD = wden(X,TPTR,SORH,SCAL,N,WNAME)
Denoised_coifi(:,i) = wden(EEG(:,i),'rigrsure','s','sln','5','db4');
plot(t1,Denoised_coif1(1:1280,i)+ i*offset2)
end

You might also like