Suppose that in Matlab you have an nSolutiona Ab is the solu
Suppose that, in Matlab, you have an n
Solution
a) A\\b is the solution to the equation Ax=b. (Matrices A and B must have the same number of rows, true in this case).
b) b\'/A, b\' is the transpose of b and b\'/A is the solution to the equation xA = b\'. Matrices A and b\' must have the same number of columns(In our case b\' and A have same number of rows)
c)A/b, here number of columns in A and b are not same, matlab will return an error message
How does A\\b differ from inv(A) * b?
If A is a square n-by-n matrix and B is a matrix with n rows, thenx = A\\b is a solution to the equation A*x = b, if it exists.
inv(A)*b, also produces the same solution to Ax=b, but A\\b produces the solution using Gaussian elimination, without forming the inverse, which is a better way, from both an execution time and numerical accuracy standpoint
