This issue is likely due to MATLAB being run with compatibility mode for Windows 8.
Removing the compatibility mode for MATLAB resolves this issue.
Please refer the online resource to run a program with/without compatibility mode:
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!