How to form a Multiplicative combination of two feature vectors ?

2 vues (au cours des 30 derniers jours)
Annie Lodhi
Annie Lodhi le 28 Juil 2019
Is there any way or built in function available on matlab to form a multiplicative combination of two feature vectors?
For example by using the following type of equetion.
features (<C i , C j > ) = < f i 1 ∗f j1 , ···, f ik ∗f jk , D > ,
  2 commentaires
KALYAN ACHARJYA
KALYAN ACHARJYA le 28 Juil 2019
How to ask a question? Please read here.
Walter Roberson
Walter Roberson le 28 Juil 2019
The references to f_ik implies that f is 2D, not a vector.

Connectez-vous pour commenter.

Réponse acceptée

Walter Roberson
Walter Roberson le 28 Juil 2019
C = vector1(:) * vector2(:).';
This works regardless of whether vector1 and vector2 are row or column vectors.

Plus de réponses (0)

Catégories

En savoir plus sur Programming dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by