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 clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window.
Web browsers do not support MATLAB commands.
Seleccione un país/idioma
Seleccione un país/idioma para obtener contenido traducido, si está disponible, y ver eventos y ofertas de productos y servicios locales. Según su ubicación geográfica, recomendamos que seleccione: .
También puede seleccionar uno de estos países/idiomas:
Cómo obtener el mejor rendimiento
Seleccione China (en idioma chino o inglés) para obtener el mejor rendimiento. Los sitios web de otros países no están optimizados para ser accedidos desde su ubicación geográfica.