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.
Sélectionner un site web
Choisissez un site web pour accéder au contenu traduit dans votre langue (lorsqu'il est disponible) et voir les événements et les offres locales. D’après votre position, nous vous recommandons de sélectionner la région suivante : .
Vous pouvez également sélectionner un site web dans la liste suivante :
Comment optimiser les performances du site
Pour optimiser les performances du site, sélectionnez la région Chine (en chinois ou en anglais). Les sites de MathWorks pour les autres pays ne sont pas optimisés pour les visites provenant de votre région.