add two MATLAB IO functions