As you can see, this is a totally unreadable mess.
https://www.mathworks.com/matlabcentral/answers/13205-tutorial-how-to-format-your-question-with-markup#answer_18099
If you seriously want help, then you need to make it possible for someone to read your code.