https://infervour.com/blog/how-to-debug-matlab-code.