My script has a lot of variables. Many of these are created simply to make the code easier to debug so I don't have to chase endless delimiters. However this fills the workspace variables I don't actually care about and it's kind of a disaster to search through.
Here's a silly example that uses extraneous variables because it makes it easier to debug.
X0 = 0
Span = 5
Xorig = X0:x0+Span
x= Xorig + 3.3
y = x.^2;
Here's a version that uses as few variables as possible but is slightly messier to debug.
x = 0+3.3:0+5+3.3
y = x.^2
This version slightly harder to read but has the advantage of not storing "X0", "Span", and "Xorig" as variables and cluttering the workspace.
In Python/Spyder, it seems to be possible to choose exclude upper case variables from the variable explorer (see the answer to this question). A feature like this would be very nice in MATLAB but I have been unable to find one. Do people have recommendations for organizing the workspace in Matlab so it's less of a mess?
Screenshot from Anaconda Spyder: