getnumtypes

Returns the number of data types in a file. By default the first subcase is used.

Syntax

getnumtypes(filename)

getnumtypes(filename, subcase)

R = getnumtypes(...)

Inputs

filename
Path of file to be read.
Type: char | string
Dimension: string
subcase
Subcase name or index in the file to be read.
Type: char | string | integer
Dimension: scalar | string

Outputs

R
Number of data types.

Examples

Basic getnumtypes example without subcase:

getnumtypes('Path/To/File/ANGACC')
R = 3
Basic getnumtypes example with subcase:
getnumtypes('Path/To/File/vdd_crc_r60_acc_crc.res','Results')
R = 117
Basic getnumtypes example using subcase index:
getnumtypes('Path/To/File/vdd_crc_r60_acc_crc.res',1)
R = 117