UPDATE: It seems that the problem is due to the fact that the primary monitor I'm using has a screen resolution of 1920x1080 (15.6"), and with this, or higher, DPI Microsoft Windows like to scale everything. And, actually, it look better too at human eyes.
But MATLAB do not like it: screen/window positions use a different space then getframe() so the position of the frame and the captured rectangle are not synced resulting in the picture I've posted.
Changing the options in executable properties>compatibility tab>DPI setting doesn't seems to prevent this (to check, use
get(0,'screensize')
) but I had to change the global setting in screen option and set it to 100%.
Any further suggestion (or feedback from MATLAB staff) will be appreciated.
Thanks,
Jacopo