Navigation

Operators and Keywords

Function List:

C++ API

: argv ()

Return the command line arguments passed to Octave.

For example, if you invoked Octave using the command

octave --no-line-editing --silent

argv would return a cell array of strings with the elements --no-line-editing and --silent.

If you write an executable Octave script, argv will return the list of arguments passed to the script. See ‘Executable Octave Programs’, for an example of how to create an executable Octave script.

Package: octave