sample1=[...];sample2=[...];[p,x] = hist(sample1); [p2,x2] = hist(sample2); plot(x,p/sum(p),'r'); %PDF
hold onplot(x2,p2/sum(p2),'g'); %PDF
I used code above to plot CDF and PDF. However, the plot is not very precise. I want to get more smooth plot. How can I make the distance between each point be 10? Currently, it seems like 100.
Thanks
Best Answer