Use of @ in matlab code

2 visualizaciones (últimos 30 días)
Rohit Singh
Rohit Singh el 19 de Jun. de 2020
Comentada: Stephen23 el 19 de Jun. de 2020
What is the use of @ in given equation :
sqr=@(n) n.^2;
x=sqr(9)

Respuestas (1)

KSSV
KSSV el 19 de Jun. de 2020
Editada: KSSV el 19 de Jun. de 2020
@ does not have any value...it is a way to reperesent anonymous functions. Read about anonymous functions in matlab.

Categorías

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

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by