There is an issue with the workspace variables persisting across different MATLAB terminal sessions. This is because of how the MATLAB extension by MathWorks works. I am working on a solution to reset the workspace each time but I am not yet sure how to since the MATLAB shell does not work like a normal terminal.