Using Matlab to solve this problem

Using Matlab to solve this problem the answer and the code  used to solve the problem in Matlab. the problem and the equation that can be used and the figure that should be after  using Matlab for this problem the code, and the same figure