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.
- subcase
- Subcase name or index in the file.
- datatype
- Data type name or index in the file. Negative index match all data types.
- request
- Request name or index in the file. Negative index match all requests.
- component
- Component name or index in the file. Negative index match all components.
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])