x=[0:pi/20:2*pi]
y=sin(x)
plot(x,y) 
title('Wykres funkcji sin(x)')
xlabel('x') 
ylabel('f(x)') 
text(2.5,0.7,'f(x)=sin(x)') 
grid