主要内容

getRunCount

Get number of runs in MLDATX file

Since R2026a

    Description

    numRuns = getRunCount(mldatxFileObj) returns the number of runs in the MLDATX file referenced by the mldatx.io.File object mldatxFileObj.

    example

    Examples

    collapse all

    Create an mldatx.io.File object referencing a saved MLDATX file.

    myFileObj = mldatxfile("MyFile.mldatx");

    Get the number of runs in the MLDATX file.

    numberOfRuns = getRunCount(myFileObj)
    numberOfRuns =
    
      int32
    
       2

    Input Arguments

    collapse all

    Reference to MLDATX file that contains the runs to count, specified as an mldatx.io.File object.

    Output Arguments

    collapse all

    Number of runs in the MLDATX file, returned as a positive integer.

    Version History

    Introduced in R2026a