Filter löschen
Filter löschen

What does the symbol @ in these products ?

1 Ansicht (letzte 30 Tage)
Susan Arnold
Susan Arnold am 25 Feb. 2016
Kommentiert: Susan Arnold am 25 Feb. 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 ?!!

Akzeptierte Antwort

Torsten
Torsten am 25 Feb. 2016
Bearbeitet: Torsten am 25 Feb. 2016

Weitere Antworten (0)

Kategorien

Mehr zu Matrix Indexing finden Sie in Help Center und File Exchange

Tags

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by