how to calculate time lag using cross correlation

1 view (last 30 days)
hi all i m doing cross correlation using xcorr() of two column vector which are datas generated by resuls of ansys. these datas for 3 microsec with 0.01 microsec time interval.these are equal in length and gives a plot having max value of cc is 145. this is a value of cross correlation constant. i need to know the value in terms of time. can i get the value in terms of time if yes than how?????? or i can say how i get the time lag between these two signals in microsec?????? my coading is x=input(:,2); y=output(:,2); t=input(:,1); n1=length(x); [cc lag]=xcorr(x,y); plot(lag,cc) find(cc==max(cc)); [

Answers (0)

Categories

Find more on Language Fundamentals in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!