cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Assign nested array elements

0 Kudos

Assign nested array elements

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.

 

1 Comment
olivierlp
Community Manager
Status changed to: Archived

Hello,

We are archiving your idea as part of a general review. This action is based on the age of your idea and the total number of votes received, as per this announcement.

You can always post a new idea with all the details required in the form.

Thank you for your participation.