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()