Main Content

loadIntoMemory

R2026b

Load logged data into memory

Description

logs = loadIntoMemory(logs) loads the data in logs from the repository on disk into memory. The software logs output, signal logging, state, and data store data to the temporary repository and loads the data into memory on demand. When you want to work with all elements of a large set of logged data, use loadIntoMemory to load all logged data into memory at once. Loading all the data at once, rather than element by element, is faster.

example

Examples

collapse all

When you have a large set of data and need to postprocess all of the signals, it is faster to bring all of the data into memory at once.

Simulate the model.

out = sim("myModel");

Load all data logged using signal logging into memory.

sigData = loadIntoMemory(out.logsout);

Input Arguments

collapse all

Data to load into memory, specified as a Simulink.SimulationData.Dataset or Simulink.SimulationOutput object.

Example: out.yout

Output Arguments

collapse all

Data loaded into memory, returned as a Simulink.SimulationData.Dataset or Simulink.SimulationOutput object.

Version History

Introduced in R2017b