This program solves the 1 D poission equation with dirishlet boundary conditions. by Gauss seidal method in the interval (a,b).
The second order derivative function is f1.m You can change for your requirement.
RMS Danaraj (2020). Finite difference method 1D by gauss seidal method (https://www.mathworks.com/matlabcentral/fileexchange/62062-finite-difference-method-1d-by-gauss-seidal-method), MATLAB Central File Exchange. Retrieved .