clear; clc; close all;

x = linspace(0, 2 * pi, 10);
y = sin(x);
z = cos(x);
w = y + z;

figure; hold on; grid on;
plot(x, y, 'o--');
plot(x, z, '*--');
xlabel('Time (s)');
ylabel('Amplitude (V)');
leg = legend({'Input', 'Output'});
set(leg, 'Position', [0.75 0.6 0.15 0.1]);
axis tight;
print(gcf, '-deps', 'figure.eps');

figure; 
plot(x, w, 'd:');