MATLAB compatibility