Question: This is in python. please help! thanks Write a function which takes two arrays as inputs and finds their average. For example, with inputs ap.array
Write a function which takes two arrays as inputs and finds their average. For example, with inputs ap.array ([1,1,2]) and np.array ([3,5,4]), the output should be np.array ([2,3,3]). In class, we saw that double for-loops can be used to fill 2D arrays with the result of a calculation (we lid Aij=i+j ). Use a double for loop to fill the values of an array B with 100 rows and 300 columns according to the formula Bij=(i+j)mod2 This is the mathematical way to Replace column 150 with the value 1. Using a for-loop, replace rows 1,3,5,7,, of the most recent version of B with the value 2 . Use matshow to visualize the results. Include the image in your pdf file
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
