This error occurred for those of you who are including the User_Scripts/beta directory to your MATLAB path so you can test out new features before they are deployed to the standard locations.
However, the error you experienced was not a feature. I put a new version of readmr and readmrhdr in the beta directory, but had neglected to update datarec2mrinfo too. Try it now and see if it works.