What does the symbol @ in these products ?

1 次查看(过去 30 天)
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 ?!!

采纳的回答

Torsten
Torsten 2016-2-25
编辑:Torsten 2016-2-25

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Matrix Indexing 的更多信息

标签

产品

Community Treasure Hunt

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

Start Hunting!

Translated by