Matlab solution to Fredholm Equations