|
|
|
|
|
- Finding out the maximum value for a series of values
Finding out the maximum value for a series of values The following code is used to find out the maximum value of the elements in row 3. We assume that the matrix is already created and initialized. // -- Click code on BTN_Max // Declare the variables ResMax is real // Maximum value of elements in row 3 ResMax = StatMax("MyMatrix", 3, False) // Error on StatMax? IF StatError() = 0 THEN // Display the result Info("The maximum value is: " + ResMax) ELSE // Display the error message Error(ErrorInfo(errMessage)) END
Esta página también está disponible para…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|