clear all;
clf;
x = 0:0.01:6;
h1 = plot (x, sin(x))
hold on
h2 = plot (x, cos(x))
h3 = plot (x, 0.01*x.^2)
h4 = plot (x, sqrt(x))
h5 = plot (x, 0.01*cosh(x))
set(h1,'color','r')
set(h2,'color','g')
set(h3,'color','b')
set(h4,'color','m')
set(h5,'color','c')
hl = legend([h1,h2,h3,h4,h5],'sin red','cos green','x^2 blue','sqrt magenta','cosh cyan');