Adding vectors of different sizes… works now? Can this be suppressed?
In previous versions of matlab, adding two vectors of different sizes would result in an error (this would align with rules of matrix addition).
For example:
[ 1 2 3 4] + [1 2 3 4]’
ans =
2 3 4 5
3 4 5 6
4 5 6 7
5 6 7 8
For example:
[ 1 2 3 4] + [1 2 3 4 5]’
ans =
2 3 4 5
3 4 5 6
4 5 6 7
5 6 7 8
6 7 8 9
Is there a way to suppress this new "feature"?In previous versions of matlab, adding two vectors of different sizes would result in an error (this would align with rules of matrix addition).
For example:
[ 1 2 3 4] + [1 2 3 4]’
ans =
2 3 4 5
3 4 5 6
4 5 6 7
5 6 7 8
For example:
[ 1 2 3 4] + [1 2 3 4 5]’
ans =
2 3 4 5
3 4 5 6
4 5 6 7
5 6 7 8
6 7 8 9
Is there a way to suppress this new "feature"? In previous versions of matlab, adding two vectors of different sizes would result in an error (this would align with rules of matrix addition).
For example:
[ 1 2 3 4] + [1 2 3 4]’
ans =
2 3 4 5
3 4 5 6
4 5 6 7
5 6 7 8
For example:
[ 1 2 3 4] + [1 2 3 4 5]’
ans =
2 3 4 5
3 4 5 6
4 5 6 7
5 6 7 8
6 7 8 9
Is there a way to suppress this new "feature"? matrix addition, warnings, errors MATLAB Answers — New Questions