I have been teaching Matlab and I just found an interesting "bug" in Matlab 2017b. For a and b defined below, I was expecting that a + b gives an error since matrix dimensions don't match. But Matlab 2017b "works" just fine.
a = [1 0; 2 1]; b = [3; 2];
With Matlab 2013a, a + b gives "Error: Matrix dimensions must agree."
With Matlab 2017b, a + b gives [4 3; 4 3].
This must be a bug in Matlab 2017b, right?
Thanks a lot!