MATLAB: Plotting a line in matlab

lineplotting

Hi everyone, I am trying to draw a stright line beneath this graph for comparison evaluation but this code doesn't work for me. Any help guys.
xline = linspace(1,14,14);
xline = 1e6*xline;
yline = xline;
plot(xline,yline,'-r*','LineWidth',4);

Best Answer

I do not think you need to do the 1e6*xline as the current plot you have looks to be already scaled to Mbps. Also since you're plotting a lines in two different commands you'll need to use the command 'hold on'.
such as:
figure,plot([1:10],[1:10].^2);
hold on
plot([1:10],[1:10]);