Documentation

Display the MATLAB Runtime Initialization Messages

You can display a console message for end users that informs them when MATLAB® Runtime initialization starts and completes.

To create these messages, use the -R option of the mcc command.

You have the following options:

  • Use the default start-up message only (Initializing MATLAB runtime version x.xx)

  • Customize the start-up or completion message with text of your choice. The default start-up message will also display prior to displaying your customized start-up message.

Some examples of different ways to invoke this option follow:

This command:Displays:
mcc -R -startmsgDefault start-up message Initializing MATLAB Runtime version x.xx
mcc -R -startmsg,'user customized message'Default start-up message Initializing MATLAB Runtime version x.xx and user customized message for start-up
mcc -R -completemsg,'user customized message'Default start-up message Initializing MATLAB Runtime version x.xx and user customized message for completion
mcc -R -startmsg,'user customized message' -R -completemsg,'user customized message" Default start-up message Initializing MATLAB Runtime version x.xx and user customized message for both start-up and completion by specifying -R before each option
mcc -R -startmsg,'user customized message',-completemsg,'user customized message'Default start-up message Initializing MATLAB Runtime version x.xx and user customized message for both start-up and completion by specifying -R only once

Best Practices

Keep the following in mind when using mcc -R:

  • When calling mcc in the MATLAB command window, place the comma inside the single quote.

    mcc -m hello.m -R '-startmsg,"Message_Without_Space"'
  • If your initialization message has a space in it, call mcc from the system command window or use !mcc from MATLAB.