This is some confusion that has emerged thanks to the new MATLAB automatic broadcast measurement .
First of all, note that the operator ./is an elementary operation.
In MATLAB versions prior to R2016b, using this operator will require the two inputs to be exactly the same.
[1 2] ./ rand(4)
Matrix sizes must match.
( ), bsxfun
bsxfun(@rdivide, [1 2], [1 2; 2 3]);
, .
.
, 1 2. 2 2, .
R2016b MATLAB , , bsxfun, .
,
[1 2; 2 3] ./ [1 2; 2 3; 3 4]
[2 x 2], - [3 x 2]. , .