| Parallel Computing Toolbox™ | ![]() |
[config, allconfigs] = defaultParallelConfig
[oldconfig, allconfigs] = defaultParallelConfig(newconfig)
config | String indicating name of current default configuration |
allconfigs | Cell array of strings indicating names of all available configurations |
oldconfig | String indicating name of previous default configuration |
newconfig | String specifying name of new default configuration |
The defaultParallelConfig function allows you to programmatically get or set the default parallel configuration and obtain a list of all valid configurations.
[config, allconfigs] = defaultParallelConfig returns the name of the default parallel computing configuration, as well as a cell array containing the names of all available configurations.
[oldconfig, allconfigs] = defaultParallelConfig(newconfig) sets the default parallel computing configuration to newconfig and returns the previous default configuration and a cell array containing the names of all available configurations. The previous configuration is provided so that you can reset the default configuration to its original setting at the end of your session.
The settings specified for defaultParallelConfig are saved as a part of your MATLAB® preferences.
The cell array allconfigs always contains a configuration called 'local' for the local scheduler. The default configuration returned by defaultParallelConfig is guaranteed to be found in allconfigs.
If the default configuration has been deleted, or if it has never been set, defaultParallelConfig returns 'local' as the default configuration.
Read the name of the default parallel configuration that is currently in effect, and get a listing of all available configurations.
[ConfigNow ConfigList] = defaultParallelConfig
Select the configuration named 'MyConfig' to be the default parallel configuration.
defaultParallelConfig('MyConfig')findResource, matlabpool, pmode
![]() | defaultPartition | demote | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |