%% Example 1
% Plot the figues used in the notes for example 1

omega = [30, 15, 0];
sigma = [-1.5, -0.75, 0, 0.75, 1.5];
plotn = 1;
t = linspace(0,1,1000);
figure
for i = 1:length(omega)
    for j = 1:length(sigma)
        subplot(3,5,plotn)
        f = exp(sigma(j)*t).*cos(omega(i)*t);
        plot(t,f),ylim([-2.75,2.75]),xlim([0,1]),grid on
        plotn = plotn + 1;
    end
end