this simulation doesn’t need any figures , just analysis the method and find the optimal point and maximum value.
below are two files attached one is assignment and the other for help in developing matlab code
you can also check the below link for help
http://www.stanford.edu/class/ee364b/lectures.html