The project files created using DEPLOYTOOL are version specific XML files. Using a project file created using a version of MATLAB different from where the project needs to be built, could lead to unexpected results at runtime.
To work around this, recreate the project using the current version of MATLAB being used. When this project is built and executed, the output should be as expected.