1d Poisson Solver Matlab