Why does backslash return a solution of all zeros to a non-singular system of equations?
4 次查看(过去 30 天)
显示 更早的评论
I am working on a project that uses a finite difference model. I use the backslash operator to solve the system of linear equations (solve for x in Ax = b) for a large, sparse matrix A. When I use the size of A that I want, the solution that results is all zeros, even though this should not be possible due to boundary conditions that I set. If I make A smaller, the solution makes sense. Is it possible that the matrix is too large to solve? I have tried many sizes for A, and there seems to be a cutoff point where MATLAB returns all zeros. Using the large size for A is important to the project.
0 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Operating on Diagonal Matrices 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!