From: andandgui isler on
I'm just trying to type ? in my MATLAB command window but it gives me an error..

i write the code below :

import java.awt.AWTException;
import java.awt.Robot;
import java.awt.event.KeyEvent;

keyboard=Robot;

keyboard.keyPress(47)
??? Java exception occurred:
java.lang.IllegalArgumentException: Invalid key code

at sun.awt.windows.WRobotPeer.keyPress(Native Method)

at java.awt.Robot.keyPress(Unknown Source)

what should i do ?
 | 
Pages: 1
Prev: output constraints
Next: Function Pointers for MEX