Effacer les filtres
Effacer les filtres

What does the symbol @ in these products ?

1 vue (au cours des 30 derniers jours)
Susan Arnold
Susan Arnold le 25 Fév 2016
Commenté : Susan Arnold le 25 Fév 2016
The first line represents probably the dot product:
dotp = @(a,b)sum(a.*b); % Dot Product
The second line represents probably the cross product:
crossp = @(a,b)a(1,:).*b(2,:)-a(2,:).*b(1,:); % Cross Product
Are the above Matlab's lines work exactly as :
dotp = dot(a,b); crossp = cross(a,b);
Third related question is about the normalization
normalize = @(a)a./repmat(sqrt(sum(a.^2)), [2 1]);
So the core question is : what does @ symbol in the above operations ?!!

Réponse acceptée

Torsten
Torsten le 25 Fév 2016
Modifié(e) : Torsten le 25 Fév 2016
  1 commentaire
Susan Arnold
Susan Arnold le 25 Fév 2016
Thank you very much Torsten :)

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Matrix Indexing dans Help Center et File Exchange

Tags

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by