what are ./ and .* are used for

 Accepted 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

More Answers (0)

Categories

Find more on Linear Algebra in Help Center and File Exchange

Tags

No tags entered yet.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!