Solution Review: Arrays and Matrices
In this review, we give a detailed analysis of the solution to this problem.
We'll cover the following...
We'll cover the following...
Solution #1: Using vectors
Explanation
Simply make three vectors and pass them to array(). Also, set the specific dimensions. Notice that the last argument to dim is because we want just one matrix.
Solution #2: Using vector
Explanation
We can also use only one vector, populate it, and pass it to array(). However, the dim argument remains the same because we want one matrix.