Presently, one cannot doubly index a nested array while trying to assign a value to it.
(Aj)i = would be a way of indexing, to read the value, but (Aj)i := 1 would throw an error.
Instead, you have to assign the whole array instead of just one element.
For example, to assign 1 to the 4th element, of array A, index 2:
v3 := 1
vT = [0 0 0 1]
A2 : = v
It takes two operations, using a variable that is superfluous, and makes the code harder to parse.
One can assign to any element of a multidimensional matrix, but then of course, all the dimensions must have the same length, to be padded with zeroes. The nested array is a nice addition to MathCAD, but needs work.
Btw, the size of multilevel indexing gets too small to read. Need a way of seeing it more clearly.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.