How do I obtain the cumulative frequencies using the CDFPLOT function from the Statistics Toolbox?
11 ビュー (過去 30 日間)
古いコメントを表示
I want to obtain the values from the plot of the cumulative distribution that I created with CDFPLOT.
採用された回答
MathWorks Support Team
2009 年 6 月 27 日
You can obtain the frequency data from CDFPLOT by using the handle for the line to access its YData values. If you use the command:
h = cdfplot(x);
the variable 'h' will contain the handle for the line. You can then use the GET command to obtain the YData from the line that will contain the cumulative frequencies:
y = get(h,'YData');
This will contain the y values used to create the plot. However, since the plot consists of alternating horizontal and vertical segments, the data will contain repeated values from the horizontal segments of the line. You can use the UNIQUE function to obtain the unique frequency values:
y = unique(y);
0 件のコメント
その他の回答 (0 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!