This change has been incorporated into the documentation in Release 2010b (R2010b). For previous releases, read below for any additional information:
The magicsquare example in the documentation creates a Windows standalone application. When you execute a Windows standalone application, the Windows command prompt will not be displayed. Additionally, any output that is sent to the system console also will not be displayed.
In order to view the command line, the target application should be specified to be "Console Application". In the first step of section "Creating a Deployable Standalone Application or Shared Library", you have to select "Console Application".
Note that specifying the target application as "Console Application" ensures that the system console is display. To see any output from the application in the system console, you need to add commands such as DISP or FPRINTF.
Best Answer