summaryrefslogtreecommitdiff
path: root/hw1/prob_5.py
blob: c3aa6d48c5689e38521b10b52d2d8def9532a385 (plain)
1
2
3
4
5
6
7
8
9
10
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()
Copyright 2019--2024 Marius PETER