Shut down parallel pool
delete(poolobj) shuts down the parallel
pool associated with the object
poolobj, and destroys
the communicating job that comprises the pool. Subsequent parallel
language features will automatically start a new parallel pool, unless
your parallel preferences disable this behavior.
References to the deleted pool object become invalid. Invalid
objects should be removed from the workspace with the
If multiple references to an object exist in the workspace, deleting
one reference to that object invalidates the remaining references
to it. These remaining references should be cleared from the workspace
Get the current pool and shut it down.
poolobj = gcp('nocreate'); delete(poolobj);