Knowledge Quiz: Matrices

Note
  • Click the check-mark button to check your answer.
  • Click the question-mark button to see an explanation of the solution.

Which of the following expressions will generate the following matrix?

\[ \begin{bmatrix} 1 & 2 & 3 \\ 4 & 5 & 6 \\ \end{bmatrix} \]

  • Wrong. This command will return \[\begin{bmatrix} 1 & 2 \\ 3 & 4 \\ 5 & 6 \\ \end{bmatrix}\]
  • Wrong. This command will return \[\begin{bmatrix} 1 & 4 \\ 2 & 5 \\ 3 & 6 \\ \end{bmatrix}\]
  • Correct.
  • Wrong. This command will return \[\begin{bmatrix} 1 \\ 2 \\ 3 \\ 4 \\ 5 \\ 6 \\ \end{bmatrix}\]
  • Wrong. This command will return \[\begin{bmatrix} 6 & 6 & 6 \\ 6 & 6 & 6 \\ \end{bmatrix}\]

Which of the following expressions will convert matrix \(a\) into matrix \(b\)?

\[ \begin{align*} a &= \begin{bmatrix} 1 & 2 \\ 3 & 4 \\ 5 & 6 \\ \end{bmatrix} \\ b &= \begin{bmatrix} 1 & 2 \\ 3 & 5 \\ 4 & 6 \\ \end{bmatrix} \end{align*} \]

  • Wrong. This command will produce \[\begin{bmatrix} 1 & 2 \\ 3 & 4 \\ 5 & 6 \\ \end{bmatrix}\]
  • Wrong. This command will produce an error since we’re trying to overwrite columns that don’t exist.
  • Correct.
  • Correct.
  • Wrong. This command will produce \[\begin{bmatrix} 1 & 2 \\ 4 & 4 \\ 5 & 5 \\ \end{bmatrix}\]
Back to top