Borrar filtros
Borrar filtros

What does the symbol @ in these products ?

1 visualización (últimos 30 días)
Susan Arnold
Susan Arnold el 25 de Feb. de 2016
Comentada: Susan Arnold el 25 de Feb. de 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 ?!!

Respuesta aceptada

Torsten
Torsten el 25 de Feb. de 2016
Editada: Torsten el 25 de Feb. de 2016

Más respuestas (0)

Categorías

Más información sobre Matrix Indexing en Help Center y File Exchange.

Etiquetas

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by