Matlab Long Problem Please Include All Matlab Code

Matlab Long Problem Please Include All Matlab Code