#pragma TextEncoding = "UTF-8"
#pragma rtGlobals=3 // Use modern global access method and strict wave access.
function lagtime()
wave mc = root:mc_2parts
wave w = root:w
variable start_index,end_index
start_index = 739*9000
end_index = 751*9000-1
duplicate/O/R=[start_index,end_index] w,w_copy
duplicate/O/R=[start_index,end_index] mc,mc_copy
Correlate/auto w_copy,mc_copy
display mc_copy
SetAxis bottom -200,200
end
网友评论