how to calculate time lag using cross correlation

1 回表示 (過去 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 Center および File ExchangeCorrelation and Convolution についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by