solution and the runtime of the MATLAB program (hint: use MATLAB functions tic, toc or cpu time to measure the runtime of the MATLAB program.)
Fig: 1