This is the code I am using:
if true
% code
load a.MAT % load data file
a=A16; % define data set
at=a(:,1); % assign time data to variable
a1=a(:,2); % assign amplitude data to variable
a1s=a1-mean(a1); % DC offset shift to zero
Q = a1s((at>=0.2 & at<=.6)); % select noise range
W = at((at>=0.2 & at<=.6)); % select time data for noise range
end
However the selection of the noise range executes vary slowly. Does anyone have a suggestion for stream lining the code so that MATLAB can execute the data selection more quickly.