1×4 TimeResult array with properties:
Name
Valid
Samples
TestActivity
Totals:
4 Valid, 0 Invalid.
The results variable is a 1x4 TimeResult array. Each element in the array
corresponds to one of the tests defined in the code section in preallocationTest.m.
Display Test Results
Display the measurement results for the second test. Your results might vary.
results(2)
ans =
TimeResult with properties:
Name: 'preallocationTest/testIndexingWithVariable'
Valid: 1
Samples: [4×7 table]
TestActivity: [8×12 table]
Totals:
1 Valid, 0 Invalid.
As indicated by the size of the TestActivity property, the performance testing
framework collected 8 measurements. This number of measurements includes four
measurements to warm up the code. The Samples property excludes warm-up
measurements.
Display the sample measurements for the second test.
results(2).Samples
ans =
4×7 table
Name MeasuredTime Timestamp Host Platform Version RunIdentifier
Test Performance Using Scripts or Functions