The code plot(d,mean(data),'color',[0,0,0],'linewidth',3)
will plot a line graph of the mean of the data vector against the values in the d vector, with a line width of 3 and a color of black.
In more detail:
d
is the x-axis values to plot.mean(data)
calculates the mean of the vector data
, which is the y-axis values to plot.'color',[0,0,0]
sets the color of the line to black, by specifying RGB values of [0,0,0].'linewidth',3
sets the width of the line to 3.Together, this will plot a line graph of the mean of the data against d, with a black line of width 3.
gistlibby LogSnag