Working around functions in newer versions of Matlab.