Try specifying the full path to gdb after the -D .
Also, check whether "matlab" is a shell script for you (it often is in Unix systems). The script might be putting the user supplied options after other options, but -D needs to be the first option.
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!