%This function defines the right boundary condition (at x = 1).
function rightVal = rightBoundary(t)
rightVal = 400;