The other day I discovered the following bug in a couple of places in my MATLAB code
I wanted to enter the column vector in my MATLAB script
[a-b,
c-d
e-f]
where a,b,c,d,e,f are long expressions in some variables.
and I entered it in as
[ a -b ;
c -d ;
e -f]
Now MATLAB interprets the second matrix as a 3x2 matrix instead of a column vector. Is there a way/command/function to force MATLAB to use only the comma and NOT any white space characters as a column separator for matrices ?