- `nargoutchk (MINARGS, MAXARGS)`
- `MSG = nargoutchk (MINARGS, MAXARGS, NARGS)`

Check that the number of requested output arguments is within the accepted
range.

If the number of output arguments is outside the accepted range, generate an
error or return an error message.

See also: `nargout`, `narginchk`.

### References

- https://www.mathworks.com/help/matlab/ref/nargoutchk.html
- https://octave.sourceforge.io/octave/function/nargoutchk.html
