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.
Website auswählen
Wählen Sie eine Website aus, um übersetzte Inhalte (sofern verfügbar) sowie lokale Veranstaltungen und Angebote anzuzeigen. Auf der Grundlage Ihres Standorts empfehlen wir Ihnen die folgende Auswahl: .
Sie können auch eine Website aus der folgenden Liste auswählen:
So erhalten Sie die bestmögliche Leistung auf der Website
Wählen Sie für die bestmögliche Website-Leistung die Website für China (auf Chinesisch oder Englisch). Andere landesspezifische Websites von MathWorks sind für Besuche von Ihrem Standort aus nicht optimiert.