Starting in R2016b with the addition of implicit expansion, some combinations of
arguments for basic operations that previously returned errors now produce results. For
example, you previously could not add a row and a column vector, but those operands are now
valid for addition. In other words, an expression like [1 2] + [1; 2]
previously returned a size mismatch error, but now it executes.
If your code uses element-wise operators and relies on the errors that MATLAB® previously returned for mismatched sizes, particularly within a
try
/catch
block, then your code might no longer
catch those errors.
For more information on the required input sizes for basic array operations, see Compatible Array Sizes for Basic Operations.