https://technicalsource9.medium.com/how-do-i-separate-the-contents-of-my-matlab-function-1b66ae4da68f