getcompname
Returns the name of a component for a given data type. The function has two forms. Use the first form when there is zero or at most one subcase and second form when there are multiple subcases.
Syntax
getcompname(filename, datatype, compindex)
getcompname(filename, subcase, datatype, compindex)
R = getcompname(...)
Inputs
- filename
- Path of the file.
- subcase
- Subcase name or index in the file.
- datatype
- Data type name or index in the file.
- compindex
- Index of a component in the file.
Outputs
- R
- Name of component.
Examples
Basic getcompname without subcase:
getcompname('Path/To/File/ANGACC','Angular Acceleration',2)
R = X-comp. ang. acc.
getcompname('Path/To/File/vdd_crc_r60_acc_crc.res','Results','Request_ptr_rear_brake_torque_data',2)
R = velocity