what are ./ and .* are used for

 Réponse acceptée

Walter Roberson
Walter Roberson le 15 Nov 2012

1 vote

./ 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

Plus de réponses (0)

Catégories

En savoir plus sur Linear Algebra dans Centre d'aide et File Exchange

Tags

Aucun tag saisi pour le moment.

Community Treasure Hunt

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

Start Hunting!

Translated by