saveProfile - Save modified cluster properties to its current profile - MATLAB (original) (raw)

Main Content

Save modified cluster properties to its current profile

Syntax

Description

saveProfile([cluster](#mw%5F2db93a50-8299-46ba-9a7e-f9e2150cd251)) saves the modified properties on the cluster object to the profile specified by the clusterProfile property, and sets the Modified property to false. If the cluster Profile property is empty, the software throws an error.

example

Examples

collapse all

This example shows how to create a cluster, modify a property, and save the change to the profile.

Create a cluster by using the parcluster function and specify a profile.

myCluster = parcluster('Processes')

myCluster = Local Cluster Properties: Profile: Processes Modified: false Host: HOSTNAME NumWorkers: 4 NumThreads: 1

Set the NumWorkers property of the cluster to3.

myCluster = Local Cluster Properties: Profile: Processes Modified: true Host: HOSTNAME NumWorkers: 3 NumThreads: 1

The myCluster.Modified property is nowtrue.

Save the modified profile of the cluster by using thesaveProfile function.

saveProfile(myCluster); myCluster

myCluster = Local Cluster Properties: Profile: Processes Modified: false Host: HOSTNAME NumWorkers: 3 NumThreads: 1

After saving, the Processes profile now matches the current property settings, so the myCluster.Modified property isfalse.

Input Arguments

Version History

Introduced in R2012a