Professional Documents
Culture Documents
x_t_1 = v_t_c
for t in range(1,N):
if (v_t_c[t]) > 0.5:
x_t_1[t] = 0.5
if v_t_c[t] < -.5:
x_t_1[t] = -0.5
plt.plot(nvec2,x_t_1,'r',label="Output 1", linewidth=2.0)
plt.plot(nvec2,x_t_2,'g',label="Output 2", linewidth=2.0)
plt.xlabel('time')
plt.ylabel('voltage')
plt.xlim(0.02,5)
legend(bbox_to_anchor=(.7, .9), loc=1, borderaxespad=0.)
Fig 2. The plots illustrating that the zener diode is a non-linear system.