Matlab's programming guide states that stereo camera-1 is the right-hand camera, and cam-2 is left-hand.
But it does not define if right-hand means in front of the stereo cameras (perspective of looking AT the lenses) or behind the camera (facing the non-lenses back side of the cameras).
Which programming guide? When you calibrate a stereo pair, either camera can be camera 1. It is easier if camera 1 is the left camera, because otherwise your disparity will be negative. And left means camera's left, i.e. left as you look in the same direction as the cameras.