Changed error with including boudary values for x for numerical solutions. The format='csr' was also included for spdiags.