Make compatible with Matlab R2013a