1#compdef matlab
2
3_arguments : \
4    {-h,-help}'[display arguments]' \
5    '(-)-n[display final environment variables, and exit]' \
6    '(-)-e[display all 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    '(-nosoftwareopengl)-softwareopengl' '(-softwareopengl)-nosoftwareopengl' \
14    '-singleCompThread[limit to single computational thread]' \
15    '-debug[provide debugging information especially for X based problems]' \
16    '(-nodesktop -nojvm)-desktop[allow the MATLAB desktop to be started by a process without a controlling terminal]' \
17    '(-desktop -nojvm)-nodesktop[do not start the MATLAB desktop]' \
18    '(-nodesktop -desktop)-nojvm[shut off all Java support by not starting the Java virtual machine]' \
19    '-jdb[enable remote java debugging]::port [4444]:_ports' \
20    '-r[start MATLAB and execute the MATLAB_command]:MATLAB_command:' \
21    '-logfile[copy any command window output to a file]:log file:_files' \
22    '-D-:debugger:_command_names -e' \
23    '-nouserjavapath[ignore custom javaclasspath.txt and javalibrarypath.txt files]'
24