0

I have to solve the linear system A*x = b where A is a sparse matrix (34k x 34k). I tried to solve using x = b \ A but this gives me an out of memory error. Is there a better way to solve this system in Matlab?

1 Answer 1

4

You're doing it wrong—you need to use:

x = A\b;

for the equation Ax = b

Sign up to request clarification or add additional context in comments.

1 Comment

@MuhammadOmer No worries, it happens to everyone from time to time. :-)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.