What does it mean of the subtraction between number and matrix

62 Views Asked by At

I have a number and a matrix. I performed the subtraction between the number and the matrix. It worked. However, it does not make sense in mathematics. So, how to understand that process in MATLAB? For example,

A=[1 2 3; 4 5 6];
B=max(A(:))-A;

What is meaning of B? On other hand, if I subtract a number which is maximum of matrix and its matrix, what is meaning of result? Thanks

1

There are 1 best solutions below

1
On

As far as I understand, the result is equal to $max(A)J-A$, where $J$ is a matrix of ones, equal in size to $A$.