Solve the given vector equation for x, or explain why no solution exists:
Solve for x where 2*2-3x = -2
4-3x = -2
3x = -6
x = -6-3
Solution :x = 2
a <- matrix(c(1,0,2,4,3,2),nrow=2, ncol=3)
a
## [,1] [,2] [,3]
## [1,] 1 2 3
## [2,] 0 4 2
b<- matrix(c(1,0,1,1,2,2),nrow=2, ncol=3)
b
## [,1] [,2] [,3]
## [1,] 1 1 2
## [2,] 0 1 2
2*a - 3*b
## [,1] [,2] [,3]
## [1,] -1 1 0
## [2,] 0 5 -2