Export one or more profiles to file
parallel.exportProfile(profileName, filename)
parallel.exportProfile({profileName1,profileName2,...,profileNameN},filename)
parallel.exportProfile(profileName, filename)
exports the
profile with the name profileName
to specified filename. The
extension .mlsettings
is appended to the filename, unless already
there.
parallel.exportProfile({profileName1,profileName2,...,profileNameN},filename)
exports the profiles with the specified names to filename
.
To import a profile, use parallel.importProfile
or the
Cluster Profile Manager.
Export the profile named MyProfile
to the file
MyExportedProfile.mlsettings
.
parallel.exportProfile('MyProfile','MyExportedProfile')
Export the default profile to the file
MyDefaultProfile.mlsettings
.
def_profile = parallel.defaultClusterProfile();
parallel.exportProfile(def_profile,'MyDefaultProfile')
Export all profiles except for local
to the file
AllProfiles.mlsettings
.
allProfiles = parallel.clusterProfiles(); % Remove 'local' from allProfiles notLocal = ~strcmp(allProfiles,'local'); profilesToExport = allProfiles(notLocal); if ~isempty(profilesToExport) parallel.exportProfile(profilesToExport,'AllProfiles'); end