PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
  • Calculating the transposed matrix
MatTranspose (Example)
Calculating the transposed matrix
The following code is used to calculate the transposed matrix. The name of the matrix is entered by the user in an edit control (EDT_MatrixName).
We assume that the matrix is already created. The existence of the matrix is checked by MatExist.
// -- Click code on BTN_Transposed
// Declare the variables
ResTranspose is boolean
// Checks the matrix existence
IF MatExist(EDT_MatrixName) = True THEN
// Calculate the transposed matrix
ResTranspose = MatTranspose(EDT_MatrixName, "MyTransposedMatrix")
// Error?
IF ResTranspose = True THEN
Info("The transposed matrix was calculated")
ELSE
// Display the error message
Error(ErrorInfo(errMessage))
END
ELSE
Info("The matrix does not exist")
END
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment