This was a known bug in MATLAB R2013b or before (see https://www.mathworks.com/support/bugreports/1002236)
Upgrading to MATLAB R2014a would solve the issue.
Thanks.
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!