DSP Lab 2
This commit is contained in:
@@ -16,8 +16,8 @@ for i in range(len(y)):
|
||||
E_x[i] = E_x_total
|
||||
|
||||
fig, ax = plt.subplots()
|
||||
ax.scatter(n,y, label="x[n]")
|
||||
ax.scatter(n, E_x, c='red', label="E_x")
|
||||
ax.axhline(np.pi**2 / 6, linestyle='-')
|
||||
ax.scatter(n,y, label="$x[n]$")
|
||||
ax.scatter(n, E_x, c='red', label="$E_x$")
|
||||
ax.axhline(np.pi**2 / 6, linestyle='-', label="$\\frac{\pi^2}{6}$")
|
||||
ax.legend()
|
||||
plt.show()
|
||||
|
||||
Reference in New Issue
Block a user