MATLAB: How to Simulate keyboard key inputs

java.awt.robotkeykeyboardsimulation

I am interested in simulating a keyboard input using .m code.
How would I go about simulating typing and other keyboard inputs?
Similar to this, but with the keyboard instead of the mouse.
Thanks,
Kevin

Best Answer

Java Robot class.