フィルターのクリア

HOW TO PLOT SMOOTH OR THEORETICAL CDF?

2 ビュー (過去 30 日間)
Mos_bad
Mos_bad 2018 年 6 月 3 日
コメント済み: jonas 2018 年 6 月 6 日
Attached is the plot of CDF based on the actual data. Also, I want to plot smooth(or theoretical) CDF in the same figure. To this goal, please let me know how to write a code. here is the whatever I have done so far:
damage_Mean=mean(damageY);
damage_Std=std(damageY);
damage_srt=sort(damageY);
damP=cdf('Normal',damage_srt,damage_Mean,damage_Std);
IM_x=linspace(min(IM), max(IM),size(damP,1))';
plot(IM_x,damP,'ro',IM_x,damP,'b');
  3 件のコメント
Mos_bad
Mos_bad 2018 年 6 月 6 日
Here is the Matlab code. please make sure you download the four attached files and then run it. The purpose is to fit an ideal CDF to the actual data which is already plotted.
jonas
jonas 2018 年 6 月 6 日
Sorry, I'm still not sure what you mean. You say that the actual data is plotted, however what you have plotted is damageP which is certainly not the actual data. You are also plotting the same thing twice, which adds to the confusion.
As a sidenote, I would edit the question and put the data on top. Perhaps someone smarter than me can chime in

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

回答 (0 件)

Community Treasure Hunt

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

Start Hunting!

Translated by