Muhammad Omer
Muhammad Omer

Reputation: 553

Solving sparse linear system in Matlab

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?

Upvotes: 0

Views: 142

Answers (1)

user2271770
user2271770

Reputation:

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

x = A\b;

for the equation Ax = b

Upvotes: 4

Related Questions