User`s guide
11 Functions — Alphabetical List
11-244
If the property is 'hostname', the specified value is used to set the hostname for
the client session of Parallel Computing Toolbox software. This is useful when the
client computer is known by more than one hostname. The value you should use is
the hostname by which the cluster nodes can contact the client computer. The toolbox
supports both short hostnames and fully qualified domain names.
config = pctconfig('p1', v1, ...) returns a structure to config. The field
names of the structure reflect the property names, while the field values are set to the
property values.
config = pctconfig(), without any input arguments, returns all the current values
as a structure to config. If you have not set any values, these are the defaults.
Examples
View the current settings for hostname and ports.
config = pctconfig()
config =
portrange: [27370 27470]
hostname: 'machine32'
Set the current client session port range to 21000-22000 with hostname fdm4.
pctconfig('hostname', 'fdm4', 'portrange', [21000 22000]);
Set the client hostname to a fully qualified domain name.
pctconfig('hostname', 'desktop24.subnet6.companydomain.com');
More About
Tips
The values set by this function do not persist between MATLAB sessions. To guarantee
its effect, call pctconfig before calling any other Parallel Computing Toolbox functions.