Averaging Varying Length Vector Sets to 1 Vector
1 次查看(过去 30 天)
显示 更早的评论
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?
0 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Linear and Nonlinear Regression 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!