Generalfox.com

Advanced Science Topics and Thought

Generalfox.com

% Sample count to remove (use X)

X = 60;

% Remove X samples from each signal

C3_Filtered = C3_Filtered(1,1:end-X);
C4_Filtered = C4_Filtered(1,1:end-X);
F3_Filtered = F3_Filtered(1,1:end-X);
F4_Filtered = F4_Filtered(1,1:end-X);
F7_Filtered = F7_Filtered(1,1:end-X);
F8_Filtered = F8_Filtered(1,1:end-X);
Fp1_Filtered = Fp1_Filtered(1,1:end-X);
Fp2_Filtered = Fp2_Filtered(1,1:end-X);
O1_Filtered = O1_Filtered(1,1:end-X);
O2_Filtered = O2_Filtered(1,1:end-X);
P3_Filtered = P3_Filtered(1,1:end-X);
P4_Filtered = P4_Filtered(1,1:end-X);
P7_Filtered = P7_Filtered(1,1:end-X);
P8_Filtered = P8_Filtered(1,1:end-X);
T7_Filtered = T7_Filtered(1,1:end-X);
T8_Filtered = T8_Filtered(1,1:end-X);

% Re-evaluate the samples – but keep the samples in line with the original
% sample count, and keep the sample times in line with the script

row_count = row_count – X;
Sample_Number = (1:1:row_count);
Sample_Time = Sample_Time(1:(end-X));

% Clean up!

clear X;