readunits
Returns a cell with the unit type and unit associated with the subcase, datatype, request and component of a given file.
Syntax
R = readunits(filename, subcase, datatype, request, component)
R = readunits(filename, datatype, request, component)
Inputs
- filename
- Path of file to be read.
- subcase
- Subcase name or index in the file.
- datatype
- Data type name or index in the file.
- request
- Request name or index in the file.
- component
- Component name or index in the file.
Outputs
- R
- Cell array containing the unit type and unit associated with a given subcase, datatype, request, component.
Example
Example 1 - readunits example with subcase.
R = readunits('Path/To/File/with_subcase_readunits.abf',1,1,1,1)
R =
{
[1,1] length
[1,2] m
}
Example 2 - readunits example without subcase.
R = readunits('Path/To/File/without_subcase_readunits.abf',1,1,1)
R =
{
[1,1] length
[1,2] mm
}
Example 3 - readunits example without units.
R = readunits('Path/To/File/without_subcase_readunits.abf',2,1,1)
R =
{
[1,1]
[1,2]
}