clear; clc; close all; 

x = linspace(0, 2 * pi, 30);
y = sin(x);
z = cos(x);

plot(x, y, "o-", 'LineWidth', 3); hold on;
plot(x, z, ".-", 'LineWidth', 3);
grid on;
xlabel("Time (s)");
ylabel("Amplitude (A)");
legend(["sin(x)", "cos(x)"], "location", "best");

print(gcf, "-djpeg", "test.jpg", "-r300");