Includes sample Matlab code