I'm looking to create a 6x6 matrix in a program and then add data to the individual cells. How can the matrix be created? I want the matrix in the program; I do not want to create the matrix in calculator mode. I've used the following to create a matrix with 3 columns of 6 rows; is there an easier way? I'm starting to think that it's a terrible calculator to try to program.
a:=augment(n_x, n_y) 'join two columns as list (x and y coords)
b:=list▶mat(a, 2) 'convert list to matrix of 2 columns
c:=list▶mat(n_z, 1) 'convert third column list to matrix of 1 column (z coord)
b:=augment(b, c) 'join third column to 2 column matrix
Disp b 'test to see that there are 3 columns in matrix (x, y, and z coords)
Disp b[2, 2] 'display element of matrix; third column of matrix has 0 values
I assume that you can use M01[4,3]:=27 to place 27 in [4,3] location.
Dik
a:=augment(n_x, n_y) 'join two columns as list (x and y coords)
b:=list▶mat(a, 2) 'convert list to matrix of 2 columns
c:=list▶mat(n_z, 1) 'convert third column list to matrix of 1 column (z coord)
b:=augment(b, c) 'join third column to 2 column matrix
Disp b 'test to see that there are 3 columns in matrix (x, y, and z coords)
Disp b[2, 2] 'display element of matrix; third column of matrix has 0 values
I assume that you can use M01[4,3]:=27 to place 27 in [4,3] location.
Dik