简体   繁体   中英

Determine the arity of a function handle and currying

Is there any way to determine the arity of a function and/or curry functions in MATLAB? I can't find any documentation on the matter.

Are you looking for nargin?

For example,

>> nargin('genvarname')

ans =

     2

ie the function genvarname has an arity of 2

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM