Hi Dario,
This issue may be resolved by forcing MATLAB to re-generate the file (History.xml) by re-generating the MATLAB Preferences.
To Reset MATLAB preferences - follow the instructions in the following answer thread.
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!