After 11 hours (mostly) in front of my computer working (mostly... sort of... sometimes), I finally figured out what was wrong with my MATLAB code. And restored it to how it was two weeks ago before I started working on it. Then I promptly re-diagnosed the first problem that I had originally diagnosed two weeks ago. And I started to "fix" it. The same way as before.