CMatrix:Set
The Set method adds or changes the value of the member at a specified CMatrix index.
CMatrix:Set( n, m, value ) |
n is the row index to set, beginning at 1.
m is the column index to set, beginning at 1.
value is the target value to set.
The following script sets 2 of the CMatrix members. The values of 2 members are them printed, showing an invalid index returning the value 0:
|
-- create a CMatrix |
|
-- set the member at index [4][2] |
|
-- set the member at index [1][5] |
|
-- result: M[4][2] = 50.5 |
|
-- result: M[1][2] = 0 (doesn't exist)s |
Mira Pro x64 Script User's Guide, Copyright Ⓒ 2023 Mirametrics,
Inc. All Rights Reserved.