diff options
Diffstat (limited to 'hw1/prob_5.py')
-rw-r--r-- | hw1/prob_5.py | 11 |
1 files changed, 11 insertions, 0 deletions
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() |