Azzera filtri
Azzera filtri

What does the symbol @ in these products ?

1 visualizzazione (ultimi 30 giorni)
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 ?!!

Risposta accettata

Torsten
Torsten il 25 Feb 2016
Modificato: Torsten il 25 Feb 2016

Più risposte (0)

Tag

Prodotti

Community Treasure Hunt

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

Start Hunting!

Translated by