Can anybody explain such a function handle in Matlab?
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
mike cool
el 25 de Oct. de 2015
@(z)func_example(x,y,z)
Can anybody kindly explain the above function handle in Matlab? I am only familiar with
@func_example
which does not have the variables in the brackets. Thanks in advance!
Respuesta aceptada
Stephen23
el 25 de Oct. de 2015
Editada: Stephen23
el 22 de Ag. de 2023
See:
which explains what you have given in your question:
@(z) % defines an anonymous function,
func_example % which calls this function
(x,y,z) % with these arguments
Note that x and y must exist in the workspace where this anonymous function is created, while the z is passed as a variable to the anonymous function when it is called.
0 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Multidimensional Arrays en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!