Averaging Varying Length Vector Sets to 1 Vector

1 vue (au cours des 30 derniers jours)
Grant Ashby
Grant Ashby le 8 Avr 2020
I am trying to use the built in autocorrelation function within the econometrics toolbox to analyze some data. The data set is supposed to decay to zero at different points, and I care about trying to find the average plot of where this decays to zero. The issue is that the data set is different lengths so I concatenate on nan's which are discarded to get vectors to match the longest vector of interest.
Because of the way this is set up with each vector being its own row, I have used nanmean and nanmedian down the columns to try to determine my average plot. The issue here is that longer traces have more of an impact on the decay because there are less values to average together. How do I produce an accurate plot showing what the average decay of this autocorrelation function should be?

Réponses (0)

Catégories

En savoir plus sur Linear and Nonlinear Regression dans Help Center et File Exchange

Produits


Version

R2017b

Community Treasure Hunt

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

Start Hunting!

Translated by