I would like to store a column of a matrix to a list, whose name is stored in a string. How can one do this?
What I am primarily attempting to do is use a loop to create various lists in which columns of a matrix can be stored. To do this, I am using a for loop and concatenating the "list prefix" with the number, which is then stored in a string. However, when I try to use the Matrlist()
command, it does not accept the string as a legitimate list name. Is there a way to override this?
χ²-Test([A],[B])
[B]-[A]→[C]
dim([A])→MD1
⌊MD1(2)→K
For(A,1,K,1)
{0,1}→L₁
{0,A}→L₂
LinReg(ax+b) Y₁
EquString(Y₁,Str1)
sub(Str1,1,length(Str1)-3)→Str)
"EO"+Str1→Str1
Matrlist([C],A,Str1)
End
For(A,1,K,1)
{0,1}→L₁
{0,A}→L₂
LinReg(ax+b) Y₁
EquString(Y₁,Str1))
sub(Str1,1,length(Str1)-3)→Str1
"E"+Str1→Str1
Matrlist([B],A,Str1)
End
Listmatr(⌊EO1²/⌊E1,⌊EO2²/⌊E2,⌊EO3²/⌊E3,[D])
"⌊EO4²/⌊E4,⌊EO5²/⌊E5,⌊EO6²/⌊E6,⌊EO7²/⌊E7,⌊EO8²/⌊E8,⌊EO9²/⌊E9)
SetUpEditor
Disp [D]