MATLAB: What are ./ and .* are used for

what are ./ and .* are used for

Best Answer

./ and .* are element-by-element division and multiplication, respectively.
[1 2 3] ./ [4 5 6]
means
[1/4 2/5 3/6]
and
[1 2 3] .* [4 5 6]
means
[1*4 2*5 3*6]
The operations that do not have the dots in them, / and * are instead matrix algebra division and matrix algebra multiplication