Ignoring Arguments - GNU Octave
Description: GNU Octave

Next: Variable-length Return Lists, Previous: Variable-length Argument Lists, Up: Functions and Scripts

### 11.4 Ignoring Arguments

In the formal argument list, it is possible to use the dummy placeholder `~` instead of a name. This indicates that the corresponding argument value should be ignored and not stored to any variable.

         function val = pick2nd (~, arg2)
           val = arg2;
         endfunction

The value of `nargin` is not affected by using this declaration.