|
|
|
|
- Sum for a series of values
Sum for a series of values The following code is used to calculate the sum of the elements found in row 3. We assume that the matrix is already created and initialized. // -- Click code on BTN_Sum // Declare the variables ResSum is real // Calculate the sum of elements in row 3 ResSum = StatSum("MyMatrix", 3, False) // Error on StatSum? IF StatError() = 0 THEN // Display the result Info("The sum is: " + ResSum) ELSE // Display the error message Error(ErrorInfo(errMessage)) END
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|