How to plot a smooth CDF plot?
7 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Hydro
le 16 Sep 2017
Réponse apportée : Image Analyst
le 16 Sep 2017
Hello, I have bias corrected RCM data with observation. I would like to see the plots of raw RCM (RRCM), a bias-corrected RCM (CRCM), and the observation (EC). Below is my code for the cdf plots however, it is kind of stairs (Plot-1). is there any other way to further smooth the cdf plot such as the one shown here (https://www.google.ca/search?q=bias+corrected+cdf+plot&dcr=0&source=lnms&tbm=isch&sa=X&ved=0ahUKEwint5PqjqrWAhXL3YMKHcbfCpMQ_AUICigB&biw=1760&bih=864#imgrc=vsxVc4nybcsOhM)
figure(3) ecdf(EC); hold on ecdf(RGCM); ecdf(CGCM); hold off axis tight xlabel('Mean Temp') ylabel('CDF') legend('EC','RAW RCM','Corrected RCM')
<<
<</matlabcentral/answers/uploaded_f
![](/matlabcentral/answers/uploaded_files/88209/Plot-1.png)
iles/88208/Plot-2.png>>
>>
0 commentaires
Réponse acceptée
Image Analyst
le 16 Sep 2017
Well, that's your actual cdf given your data. If you want a smoother curve, use more data points, or fit a curve through it, though fitting will no longer reflect your actual data anymore. Attached are some examples of non-linear fitting.
0 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Smoothing dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!