How do I average two numerical matrix data sets?

2 ビュー (過去 30 日間)
Daniel Chang
Daniel Chang 2016 年 8 月 7 日
回答済み: Star Strider 2016 年 8 月 7 日
I have three trials of data sets and I am trying to average them all together and plot them into a graph. How do I do it?

回答 (1 件)

Star Strider
Star Strider 2016 年 8 月 7 日
The actual approach requires knowing what your data are and how you acquired them. One generic approach is to use the mean function. This works best if they all all the same lengths. I would also calculate the standard deviations (the std function) to use in the event you want to also plot measures of dispersion (such as standard errors or 95% confidence intervals). Remember that the mean is affected by extreme values, so consider the median function as well. Use whatever best describes your data. The documentation for the functions will tell you how to apply them appropriately to your data.

カテゴリ

Help Center および File ExchangeStatistics and Machine Learning Toolbox についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by