Chapter 16: Smart Antennas

Example 16.1, Page no. 966

In [17]:
#in this example we have to solve a system of linear equations

w=np.mat('1 1;0.7071-0.7071j 0.7071+0.7071j')
a=np.array([1,0])

x=np.linalg.solve(w,a)
print "The optimum values of w1 and w2 which guarantee maximum signal-to-interference ratio at theta=0:",x
The optimum values of w1 and w2 which guarantee maximum signal-to-interference ratio at theta=0: [ 0.5-0.5j  0.5+0.5j]
In [ ]: