From 9060d5a3d1f4d247b376894dea64aa694d9e98a6 Mon Sep 17 00:00:00 2001 From: Marius Peter Date: Wed, 3 Jul 2019 22:10:22 -0700 Subject: homework submission --- hw1/prob_5.py | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 hw1/prob_5.py (limited to 'hw1/prob_5.py') diff --git a/hw1/prob_5.py b/hw1/prob_5.py new file mode 100644 index 0000000..c3aa6d4 --- /dev/null +++ b/hw1/prob_5.py @@ -0,0 +1,11 @@ +import numpy as np +import matplotlib.pyplot as plt + +t = [0.01 * x for x in range(0, 1001)] +y = [-(t + 1) * np.exp(-t) for t in t] + +plt.plot(t, y) +plt.xlabel('t (sec)') +plt.ylabel('y(t)') +plt.title('MAE 171A - Homework 1.5\n Step Response') +plt.show() -- cgit v1.2.3