getcmdinput
Gets the command line argument at position n supplied as part of the -input option while launching the application.
Syntax
R = getcmdinput(n)
Inputs
- n
- Type: integer
Outputs
- R
- Type: string
Examples
Gets the first command line argument when run with the following command line options: -input foo1.oml and -f foo2.oml.
R = getcmdinput(1)
R = foo1.oml
c = getcmdinput(1), m = getcmdinput(2)
c = [ 1 ; 2 ]
m = { 1,2,3 }
c = getcmdinput(1), m = getcmdinput(2)
c = [ 1 ; 2 ]
m = { 1,2,3 }