Advertisement
Guest User

Untitled

a guest
Aug 19th, 2019
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. cc_matlab = xcorr(x,y,176); %You can upload the ts via github
  2. stem(cc_matlab) %alternatively, to see the shape use plot()
  3.  
  4. x <- R.matlab::readMat('x.mat')$x #read the series
  5. y <- R.matlab::readMat('y.mat')$y
  6. cc_R<-stats::ccf(array(x),array(y),176,plot=T) #cross-correlation function
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement