MATLAB related sample code