How can I read or manipulate matrix data?

Category:
Scripting
Answer

The attached project includes the DPL script "CalcMat" in the study case. The script demonstrates how to read and manipulate matrix data. After resizing the matrix "out" the value of every row and column will be read from the matrix "in" and then copied to matrix "out". Additionally for every row the sum of the first two columns will be calculated and set in the last column.

The following functions are used in the script: NRow(), NCol(), Set(), Get(), Resize()

 

Tags
Back