Must be in Python(please have a screen shot on these solution code)
def addMatrix(a , b):
# create a matrix of same dimension as a and b
c = [ [ 0 , 0 , 0 ] , [ 0 , 0 , 0 ] , [ 0 , 0 , 0 ] ]
for i in range( 0 , len(a) ):
for j in range( 0 , len( a[i] ) ):
c[i][j] = a[i][j] + b[i][j]
return c
print('Enter 3x3 matrix')
x = list( map( float , input('Enter matrix 1 : ').split(' ') ) )
y = list( map( float , input('Enter matrix 2 : ').split(' ') ) )
index = 0
a = [ [ 0 , 0 , 0 ] , [ 0 , 0 , 0 ] , [ 0 , 0 , 0 ] ]
b = [ [ 0 , 0 , 0 ] , [ 0 , 0 , 0 ] , [ 0 , 0 , 0 ] ]
for i in range( 0 , 3 ):
for j in range( 0 , 3 ):
a[i][j] = x[index]
index += 1
index = 0
for i in range( 0 , 3 ):
for j in range( 0 , 3 ):
b[i][j] = y[index]
index += 1
c = addMatrix( a , b )
for i in range(0 , 3):
print(a[0][i] , end = ' ')
print(' ' , end = '')
for i in range(0 , 3):
print(b[0][i] , end = ' ')
print(' ', end = '')
for i in range(0 , 3):
print(c[0][i] , end = ' ')
print()
for i in range(0 , 3):
print(a[1][i] , end = ' ')
print(' + ' , end = '')
for i in range(0 , 3):
print(b[1][i] , end = ' ')
print(' = ', end = '')
for i in range(0 , 3):
print(c[1][i] , end = ' ')
print()
for i in range(0 , 3):
print(a[2][i] , end = ' ')
print(' ' , end = '')
for i in range(0 , 3):
print(b[2][i] , end = ' ')
print(' ', end = '')
for i in range(0 , 3):
print(c[2][i] , end = ' ')
Sample Output
Must be in Python(please have a screen shot on these solution code) 11.5 (Algebra: add two...
In a digital communication system, probability density function of the two level signal received in the receiver is: PR(v) = PS(v)*PN(v) = [0.4δ(v+1) + 0.6δ(v-4)]*η(v). And , η(v) is the noise that added to the message sign as the additive Gaussian noise with a value of zero and an effective value of 3. (* symbol means convolution process, in the solution of this problem you can use the below Q function table.) , η(v) = A) Plot the probability density...