Manage a Publish Configuration
• “Running an Existing Publish Configuration” on page 23-28
• “Creating Multiple Publish Configurations for a File” on page 23-28
• “Reassociating and Renaming Publish Configurations” on page 23-29
• “Using Publish Configurations Across Different Systems” on page 23-29
Together, the code in the MATLAB expression pane and the settings in the Publish settings pane
make a publish configuration that is associated with one file. These configurations provide a simple
way to refer to publish preferences for individual files.
To create a publish configuration, click the Publish button drop-down arrow on the Publish tab,
and select Edit Publishing Options. The Edit Configurations dialog box opens, containing the
default publish preferences. In the Publish configuration name field, type a name for the publish
configuration, or accept the default name. The publish configuration saves automatically.
Running an Existing Publish Configuration
After saving a publish configuration, you can run it without opening the Edit Configurations dialog
box:
1
Click the Publish button drop-down arrow If you position your mouse pointer on a publish
configuration name, MATLAB displays a tooltip showing the MATLAB expression associated with
the specific configuration.
2
Select a configuration name to use for the publish configuration. MATLAB publishes the file using
the code and publish settings associated with the configuration.
Creating Multiple Publish Configurations for a File
You can create multiple publish configurations for a given file. You might do this to publish the file
with different values for input arguments, with different publish setting property values, or both.
Create a named configuration for each purpose, all associated with the same file. Later you can run
whichever particular publish configuration you want.
Use the following steps as a guide to create new publish configurations.
1
Open a file in your Editor.
2
Click the Publish button drop-down arrow, and select Edit Publishing Options. The Edit
Configurations dialog box opens.
3
Click the Add button
located on the left pane.
A new name appears on the configurations list, filename_n, where the value of n depends on
the existing configuration names.
23 Presenting MATLAB Code
23-28
• “Running an Existing Publish Configuration” on page 23-28
• “Creating Multiple Publish Configurations for a File” on page 23-28
• “Reassociating and Renaming Publish Configurations” on page 23-29
• “Using Publish Configurations Across Different Systems” on page 23-29
Together, the code in the MATLAB expression pane and the settings in the Publish settings pane
make a publish configuration that is associated with one file. These configurations provide a simple
way to refer to publish preferences for individual files.
To create a publish configuration, click the Publish button drop-down arrow on the Publish tab,
and select Edit Publishing Options. The Edit Configurations dialog box opens, containing the
default publish preferences. In the Publish configuration name field, type a name for the publish
configuration, or accept the default name. The publish configuration saves automatically.
Running an Existing Publish Configuration
After saving a publish configuration, you can run it without opening the Edit Configurations dialog
box:
1
Click the Publish button drop-down arrow If you position your mouse pointer on a publish
configuration name, MATLAB displays a tooltip showing the MATLAB expression associated with
the specific configuration.
2
Select a configuration name to use for the publish configuration. MATLAB publishes the file using
the code and publish settings associated with the configuration.
Creating Multiple Publish Configurations for a File
You can create multiple publish configurations for a given file. You might do this to publish the file
with different values for input arguments, with different publish setting property values, or both.
Create a named configuration for each purpose, all associated with the same file. Later you can run
whichever particular publish configuration you want.
Use the following steps as a guide to create new publish configurations.
1
Open a file in your Editor.
2
Click the Publish button drop-down arrow, and select Edit Publishing Options. The Edit
Configurations dialog box opens.
3
Click the Add button
located on the left pane.
A new name appears on the configurations list, filename_n, where the value of n depends on
the existing configuration names.
23 Presenting MATLAB Code
23-28
