<div class="code">    
<pre class="verbatim">
x = [0:0.001:1]; 
f = inline('sin(2*x)-1 + x');
g1 = inline('1-sin(2*x)'); 
g2 = inline('1/2*(asin(1-x))'); 
h = inline('x');
plot(x, f(x), '--.b',  x, g1(x), '-.b', x, g2(x), '--b', x, h(x),'b'); 
legend('f', 'y=1-\sin(2x)', 'y=1/2*(Arcsin(1-x))', 'y=x'); 
grid on; 
ylabel('y(x)'); 
xlabel('x'); 
</pre>
</div>