Added sample Matlab code