Option to read data in parallel, specified as one of these values:
"off" — Run in serial on the MATLAB® client.
"auto" — Use a parallel pool if one is open or if
MATLAB can automatically create one. If a parallel pool is not available,
run in serial on the MATLAB client.
"on" — Use a parallel pool if one is open or if MATLAB can automatically create one. If a parallel pool is not available,
throw an error.
If you do not have a parallel pool open and automatic pool creation is
enabled, MATLAB opens a pool using the default cluster profile. To use a parallel pool to
run computations in MATLAB, you must have Parallel Computing Toolbox. For more information, see Run MATLAB Functions with Automatic Parallel Support (Parallel Computing Toolbox).
Before R2026b: To run in parallel, set
UseParallel to true
(1).
The parmode argument
now accepts "off", "auto", or "on"
values instead of true or false. This change gives you
more control over when to use a parallel pool for parallel execution.
Specifying the UseParallel argument as true or
false is not recommended.
This table shows how to update your code depending on your goal.
Goal
Not recommended
Recommended
Write code that runs on the MATLAB client.
readall(ADS, UseParallel=false)
readall(ADS, UseParallel="off")
Write portable code that runs on a parallel pool and, if a pool is not
available, runs on the MATLAB client.
readall(ADS, UseParallel=true)
readall(ADS, UseParallel="auto")
Write code that runs on a parallel pool and errors if a pool is not
available.
You can also select a web site from the following list
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.