parallel.clusterProfiles
(Not recommended) Names of all available cluster profiles
parallel.clusterProfiles
is not recommended. Use parallel.listProfiles
instead. For information on updating your
code, see Version History.
Syntax
ALLPROFILES = parallel.clusterProfiles
[ALLPROFILES, DEFAULTPROFILE] = parallel.clusterProfiles
Description
ALLPROFILES = parallel.clusterProfiles
returns a cell array
containing the names of all available profiles.
[ALLPROFILES, DEFAULTPROFILE] = parallel.clusterProfiles
returns a cell array containing the names of all available profiles, and separately
the name of the default profile.
The cell array ALLPROFILES
always contains a profile called
local
for the local cluster, and always contains the default
profile. If the default profile has been deleted, or if it has never been set,
parallel.clusterProfiles
returns local
as the default profile.
You can create and change profiles using the saveProfile
or
saveAsProfile
methods on a cluster object. Also, you can
create, delete, and change profiles through the Cluster Profile Manager.
Examples
Display the names of all the available profiles and set the first in the list to be the default profile.
allNames = parallel.clusterProfiles() parallel.defaultClusterProfile(allNames{1});