Smooth graph matlab

CaptainBlack

MHF Hall of Fame
Nov 2005
14,972
5,271
someplace
Hi i have a graph (please see attatched).

But i want them to be smooth curves.

My teacher has told me to reduce bin sizes.

How do i do this?

Thanks Adam
Sort the data in a data set (call the data: x) put y=(1:length(x))/length(x) then plot(x,y)

CB
 
  • Like
Reactions: adam_leeds
Oct 2008
393
10
In fact that's what i've already done.

PR = sort(x);
x=[1:1:366];
a=x/366;
plot(PR,a)

and it comes out like that
 

CaptainBlack

MHF Hall of Fame
Nov 2005
14,972
5,271
someplace
In fact that's what i've already done.

PR = sort(x);
x=[1:1:366];
a=x/366;
plot(PR,a)

and it comes out like that
So why are you talking about bin sizes, there is no binning involved?

CB