how to calculate time lag using cross correlation
Afficher commentaires plus anciens
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)); [
Réponses (0)
Catégories
En savoir plus sur Correlation and Convolution dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!