Matlab code for solving 2D Laplace pde
16 次查看(过去 30 天)
显示 更早的评论
I already discretized pde by central difference method, but not sure how to create a code for iterative methods such as Jacobi and Gauss Seidel.
0 个评论
回答(2 个)
Precise Simulation
2017-11-24
Sparse linear solvers are already available in Matlab, the backslash operator per default uses the Umfpack direct solver
y = A\x;
help \
for iterative solvers you can for example use gmres or bicg
help gmres
help bicg
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Boundary Conditions 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!