Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

parallel.exportProfile

Export one or more profiles to file

Syntax

parallel.exportProfile(profileName, filename)
parallel.exportProfile({profileName1,profileName2,...,profileNameN},filename)

Description

parallel.exportProfile(profileName, filename) exports the profile with the name profileName to specified filename. The extension .settings 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.

Examples

Export the profile named MyProfile to the file MyExportedProfile.settings.

parallel.exportProfile('MyProfile','MyExportedProfile')

Export the default profile to the file MyDefaultProfile.settings.

def_profile = parallel.defaultClusterProfile();
parallel.exportProfile(def_profile,'MyDefaultProfile')

Export all profiles except for local to the file AllProfiles.settings.

allProfiles = parallel.clusterProfiles();
% Remove 'local' from allProfiles
notLocal = ~strcmp(allProfiles,'local');
profilesToExport = allProfiles(notLocal);
if ~isempty(profilesToExport)
  parallel.exportProfile(profilesToExport,'AllProfiles');
end
Was this topic helpful?