signature

Parse function argument names from an mfile or anonymous function handle
495 Downloads
Aktualisiert 16. Aug 2010

Lizenz anzeigen

Returns a listing of function argument names

ARGSOUT = SIGNATURE.ARGOUT(FUN) returns a list of output arguments in the mfile corresponding to FUN

ARGSIN = SIGNATURE.ARGIN(FUN) returns a list of input arguments in the mfile corresponding to FUN

The latter also works for anonymous functions. For example:

signature.argin(@(x,y,z) z+y+x)
ans =
'x' 'y' 'z'

Zitieren als

Peter Cotton (2024). signature (https://www.mathworks.com/matlabcentral/fileexchange/28489-signature), MATLAB Central File Exchange. Abgerufen .

Kompatibilität der MATLAB-Version
Erstellt mit R2010a
Kompatibel mit allen Versionen
Plattform-Kompatibilität
Windows macOS Linux
Kategorien
Mehr zu Argument Definitions finden Sie in Help Center und MATLAB Answers

Community Treasure Hunt

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

Start Hunting!
Version Veröffentlicht Versionshinweise
1.0.0.0