Question: Create a 7x7 matrix with random elements, where each element is in the range of 1 to 100. Calculate the median, mean and standard deviation

Create a 7x7 matrix with random elements, where each element is in the range of 1 to 100. Calculate the median, mean and standard deviation of the elements of this matrix using relevant Python functions.

HW 2.3 Try to write a script to determine the maximum of the elements of the matrix in HW2.2 using for loops.

HW 2.4 Write a script to perform the following: Create a random matrix M of size 6x5, with values ranging from 0 to 100. Create a copy of this matrix named b. Replace each element of the matrix b, with 1 if the value is greater than 50; 0 if the value is smaller than 50. For example: [ 43 21 13 11 56 75 9 34 63 ] [ 0 0 0 0 1 1 0 0 1 ]

HW 2.5 Solve the following system to obtain the x vector; [ 1 3 2 2 4 6 7 3 9 ][ 4 2 3 1 5 7 9 8 3 ] = [ 3 9 7 ] HW 2.6 Write a script that calculates the transpose of a given matrix by using for loops and index operations. (You can use Numpy.shape function to determine the number of elements in the input matrix.)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!