Challenge: Matrix Multiplication

Solve this challenge on matrix multiplication in R.

We'll cover the following

Exercise

The following code will generate a randomly distributed grayscale matrix with values from 00 to 100100. Your challenge is to:

  • Create two x and y matrices.
  • Multiply them within the matrix_mul() function.

Use the code editor below to implement your solution.

Note: You can get help by clicking “Show Solution” under the code

Get hands-on with 1400+ tech skills courses.