You can enable displaying in Command Prompt and logging by changing the Additional runtime settings in Compiler Window. By doing these, you can find a cause of the issue.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/276910/image.png)
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!