# getcmdinput

Gets the command line argument at position n supplied as part of the -input option while launching the application.

## Syntax

R = getcmdinput(n)

n
Type: integer

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
Gets a cell array and matrix on Linux through the input command when run with the following command line options: -input '[' 1 ';' 2 ']' '{' 1,2,3 '}' .
c = getcmdinput(1), m = getcmdinput(2)
c = [ 1 ; 2 ]
m = { 1,2,3 }
Gets a cell array and matrix on Windows through the input command when run with the following command line options: -input [ 1 ; 2 ] {1,2,3}.
c = getcmdinput(1), m = getcmdinput(2)
c = [ 1 ; 2 ]
m = { 1,2,3 }