Try problem 9 on Matlab