Question: 2 in r create an identity matrix of dimensions 3...
2) In R, Create an identity matrix of dimensions 3 by 3. Create another 3 by 3 matrix that contains the sequence 1 to 9. Use matrix multiplication to multiply these two matrices by each other. Confirm that the second matrix equals the output of the matrix multiplication using the == operator. Hint: An identity matrix has diagonal Ones, and rest members are Zero.
Please show the code.