user4999605
user4999605

Reputation: 441

Matlab singular matrix solver

If matrices AX=B, and A = 3x3, B=3x1, and A is singular, and B has non zero numbers. Solve for X

Is this possible to solve for?

How can you solve for X in MATLAB, is it possible to solve this by hand?

I know that is A is singular because det(A) = 0 and there is no inverse, but are these problems solvable or simply unsolvable?

Upvotes: 1

Views: 449

Answers (1)

tashuhka
tashuhka

Reputation: 5126

You can use the pseudo inverse:

X = pinv(A) * B

Upvotes: 2

Related Questions