% Orizoume mia timh gia to A
A = 1;

% Diamerizoume ton a3ona tou xronou ana dt
dt = 0.001;

% Orizoume mia timh gia thn periodo T0
T0 = 1; 

% Orizoume ton a3ona tou xronou (4 periodoi)
t = 0:dt:4*T0;

% Posa ek8etika 8eloume? Estw 80, me 40 na exoun arnhtikh...
% kai alla 40 na exoun 8etikh syxnothta
N = 80;

% pollaplasia tou k me bhma 1
k = [-N/2:1:-1 1:1:N/2];

% H mesh timh
X0 = A/2;

% Oi syntelestes twn ek8etikwn
Xk = A./(2*k*pi) .* exp(j*pi/2);

% Pra3h!
x = X0 + %INSERT CODE HERE;

% Apeikonish
plot(t, real(x)); xlabel('Time (s)');