how to calculate time lag using cross correlation

조회 수: 2 (최근 30일)
kavya saxena
kavya saxena 2013년 2월 12일
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)); [

답변 (0개)

카테고리

Help CenterFile Exchange에서 Correlation and Convolution에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by