readunits

Returns a cell with the unit type and unit associated with the subcase, datatype, request and component of a given file.

Attention: Available only with Activate commercial edition.

Syntax

R = readunits(filename, subcase, datatype, request, component)

R = readunits(filename, datatype, request, component)

Inputs

filename
Path of file to be read.
Type: char | string
Dimension: string
subcase
Subcase name or index in the file.
Type: int | string
Dimension: scalar | string
datatype
Data type name or index in the file.
Type: int | string
Dimension: scalar | string
request
Request name or index in the file.
Type: int | string
Dimension: scalar | string
component
Component name or index in the file.
Type: int | string
Dimension: scalar | string

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] 
}