This MATLAB function appends data in mdat to MATLAB matrix var_name or creates var_name if it does not exist.
www.mathworks.com