简体   繁体   中英

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?

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

x = A\b;

for the equation Ax = b

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM