This week we evaluated matrixes in R using two given matrix sets(A and B). Below is the R code console

R provides with a lot of information as to why some codes did not work and resulted in an error. Most of the errors were a result of the dimensions of the two matrixes. To better understand I used the dim() function in R.
dim(A)
R Code
[1] 10 10
dim(B)
[1] 10 100
For Matrix A: the determinant worked because the matrix was a square (dimensions of 10×10); the inverse did not work and displayed an error because it was exactly singular
For Matrix B: due to the “nrow = 10” dimensions, the determinant was not able to be found as it is not a square (dimensions of 10×100); the aspect of the matrix not being a square also affected the inverse “solve” function
