added matlab code to generate sample A's and u's