This line is the same in all branches (except the implicit `else`, but I'm not sure if Matlab even exists anywhere else). Move it outside of the `if`, perhaps?