1#compdef matlab
2
3_arguments : \
4    {-h,-help}'[display arguments]' \
5    '(-e)-n[display final environment variables, and exit]' \
6    '(-n)-e[display ALL the environment variables and values, and exit]' \
7    '-arch[start MATLAB assuming architecture arch]:architecture:' \
8    '-c[set location of the license file]:licensefile:_files' \
9    '(-nodisplay)-display:display:_x_display' \
10    '(-display)-nodisplay[do not display any X commands]' \
11    '-nosplash[do not display the splash screen during startup]' \
12    '-mwvisual[the default X visual to use for figure windows]:visualid:' \
13    '-debug[provide debugging information especially for X based problems]' \
14    '(-nodesktop -nojvm)-desktop[allow the MATLAB desktop to be started by a process without a controlling terminal]' \
15    '(-desktop -nojvm)-nodesktop[do not start the MATLAB desktop]' \
16    '(-nodesktop -desktop)-nojvm[shut off all Java support by not starting the Java virtual machine]' \
17    '-r[start MATLAB and execute the MATLAB_command]:MATLAB_command:' \
18    '-logfile[make a copy of any output to the command window in file log]:log file:' \
19    '-D-:debugger:_path_commands'
20