clc;
clear all;
close all;

% Ðåäßï ïñéóìïý x áðü -2ð Ýùò 2ð
x = [-2*pi:0.01:2*pi];

for i=1:length(x)
    y(i) = sin(x(i));
end

% ÃñáöéêÞ ðáñÜóôáóç çìéôüíïõ
plot(x,y,'ro');

% ¼ñéá áîüíùí:
% xx' áðü -2ð Ýùò 2ð
% yy' áðü -1 Ýùò +1
axis([-2*pi 2*pi -1 1]);

% Äçìéïõñãßá áîüíùí ìå äéáêåêïììÝíåò ãñáììÝò
hold on;
plot([-2*pi 2*pi],[0 0],'k--');
plot([0 0],[-1 1],'k--');

% Êåßìåíï óôï ãñÜöçìá
text( pi/2,0,'Ð/2'  );
text(-pi/2,0,'-Ð/2' );
text(3*pi/2,0,'3Ð/2' );
text(-3*pi/2,0,'-3Ð/2');

