how i can have dimension input of a defined function like f ?
Mostrar comentarios más antiguos
i have a code that input of its a handle function like f, in duration of this code i need to number of input this function for example f is: f=@(x,y)(x+y)
Respuesta aceptada
Más respuestas (1)
Walter Roberson
el 2 de Jul. de 2015
f = @(x,y)(x+y)
out = nargin(f)
Categorías
Más información sobre Shifting and Sorting Matrices en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!