saveProfile
Save modified cluster properties to its current profile
Description
saveProfile(cluster)
saves the modified properties on the
cluster object to the profile specified by the cluster's
Profile
property, and sets the
Modified
property to false
. If the
cluster's Profile
property is empty, an error is thrown.
Examples
Create a cluster, then modify a property and save the change to the profile.
myCluster = parcluster('Processes')
myCluster = Local Cluster Properties: Profile: Processes Modified: false Host: HOSTNAME NumWorkers: 4 NumThreads: 1
myCluster.NumWorkers = 3
myCluster = Local Cluster Properties: Profile: Processes Modified: true Host: HOSTNAME NumWorkers: 3 NumThreads: 1
The myCluster.Modified
property is now
true
.
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 is
false
.
Version History
Introduced in R2012a