diff --git a/Graph.jpg b/Graph.jpg new file mode 100644 index 0000000..1265d46 Binary files /dev/null and b/Graph.jpg differ diff --git a/lab_2_plot.m b/lab_2_plot.m new file mode 100644 index 0000000..d056025 --- /dev/null +++ b/lab_2_plot.m @@ -0,0 +1,17 @@ + +clear all; clc; + +% Replace the strings with the correct numbers +x = -20:1:20; % Replace the strings with the correct numbers +% Calculate the function +y = 2*exp(-0.2*x); + +% Plot the function +p = plot(x,y); +p.LineWidth=2; +p.Color = 'red'; +p.Marker = '*'; +title("y=2e^{-0.2x}") +xlabel("X axis") +ylabel("Y axis") +xlim([-10 10]); \ No newline at end of file