releasedata

The data read through ReadVectors and ReadMultVectors is not necessarily auto-released from memory when the vectors they were assigned to are emptied. They can be released explicitly though as shown below. The function has two forms and take similar arguments as ReadVector. On success, returns true.

Syntax

releasedata(filename, datatype, request, component)

releasedata(filename, subcase, datatype, request, component)

Inputs

filename
Path of the file.
Type: string
subcase
Subcase name or index in the file.
Type: string | int
datatype
Data type name or index in the file. Negative index match all data types.
Type: string | int | cell
request
Request name or index in the file. Negative index match all requests.
Type: string | int | cell
component
Component name or index in the file. Negative index match all components.
Type: string | int | cell

Example

Basic releasedata example:

data = readvector('Path/To/File/ANGACC','Angular Acceleration', '50th% Hybrid3   - UPPER LEG RIGHT', [1,2]);
releasedata('Path/To/File/ANGACC','Angular Acceleration', '50th% Hybrid3   - UPPER LEG RIGHT', [1,2])