Hauptinhalt

Hintergrund- und Parallelverarbeitung

Ausführen von Code im Hintergrund oder zu einem bestimmten Zeitpunkt

MATLAB® umfasst Funktionen zum Festlegen von Timern für die Ausführung von Programmen und Code im Hintergrund.

Funktionen

alle erweitern

timerSchedule execution of MATLAB commands
deleteDelete files or objects
isvalidDetermine valid handles
startStart timer
startatSchedule timer to fire at specified time
stopStop timer
timerfindFind timer objects
timerfindallFind all timer objects
waitBlock command prompt until timer stops running

Ausführung im Hintergrund

parfevalRun function in background (Seit R2021b)
parfevalOnAllRun function on all workers in background
backgroundPoolEnvironment for running code in the background (Seit R2021b)

Future-Objekte

fetchOutputsRetrieve results from function running in the background
afterEachRun function after each function finishes running in the background
afterAllRun function after all functions finish running in the background
cancelStop function running in the background
cancelAllStop all functions running in the background (Seit R2022a)
waitWait for futures to complete
fetchNextRetrieve next unread outputs from Future array
FutureFunction scheduled to run

Datenwarteschlangen

sendSend data to DataQueue or PollableDataQueue
pollRetrieve data from PollableDataQueue
closeClose pollable data queue (Seit R2025a)
afterEachRun function after data is received on DataQueue
parallel.pool.DataQueueSend and automatically process data
parallel.pool.PollableDataQueueSend and manually retrieve data
parallel.pool.ConstantCopy or create data only once on workers in parallel pool (Seit R2021b)