clf;

t=0:.001:4;

F1 = 3;     % 3 Hz signal
A1 = 1;
Th1 = pi/4;

F2 = 4;     % 4 Hz signal
A2 = 2;
Th2 = pi/2;

x = A1*cos(2*pi*F1*t + Th1) + A2*cos(2*pi*F2*t + Th2);

plot(t,x);
grid
ti=title('Periodic signal - T_p is 1 sec');
set(ti,'FontSize',18);
xl=xlabel('t (sec)');
set(xl,'FontSize',14);
set(xl,'FontWeight','bold');
yl=ylabel('x(t)');
set(yl,'FontSize',14);
set(yl,'FontWeight','bold');

print -dps periodic.ps
