95% area under data set

6 ビュー (過去 30 日間)
Max Bernstein
Max Bernstein 2017 年 2 月 14 日
コメント済み: Star Strider 2017 年 2 月 15 日
Hello,
I have a set of data representing current as a function of angles as shown in the attached figure. The data sets I have are not Gaussian and I would like to find the 95% area under the curve along with the x1 and x2 position to add to the plot, but I do not have the stat or curve fit toolbox. How can I do this in Matlab?
Thanks

採用された回答

Star Strider
Star Strider 2017 年 2 月 14 日
Without your data, I can only outline the approach I would use. First, use the cumtrapz function to do the integration. Normalise the area to 1 by dividing the result of your cumtrapz call by the last value of the vector. Then use the interp1 function to calculate the value of the 2.5% and 97.5% values. Those will be the limits of the central 95%.
  4 件のコメント
Max Bernstein
Max Bernstein 2017 年 2 月 15 日
Thank you very much! I was able to get this working with my data set.
Star Strider
Star Strider 2017 年 2 月 15 日
As always, my pleasure!

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeCurve Fitting Toolbox についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by