Plot smooth cumulative distribution function using MATLAB
问题 How is it possible to make the following cumulative distribution function (CDF) curve smoother? Here's my code, using cdfplot: clear all; close all; y = [0.75862069 0.666666667 0.882352941 0.875 0.736842105 0.566666667 0.703703704 0.6 0 0.730769231 0.714285714 0.625 0.675 0.693877551 0.731707317 0.558823529 0.679245283 0.740740741 0.785714286 0.789473684 0.615384615 0.6 0.739130435 0.576923077 0 0.75]; cdfplot(y) The plot looks like: 回答1: data = [2 1 4 2 3]; sdata = sort(data); plot(sdata,(0