Question

Q2

a) Create a 3 x 3 matrix of random integers between 5 and 20. Save this as variable A and display it clearly in the command window.

b) Create a copy of A called B (do not display it in the command window yet). Modify B so that the middle element is equal to 50, and display B clearly in the command window.

c) Use elementwise operations to calculate 4²/B and display the answer clearly in the command window.