I am sure there is a simple answer to this problem but I can't figure it out. I am trying to compute distance between two objects using a distance matrix. I can't get the following JSL code to work:
dt = Open (dist matrix.jmp);
m = dt << Get All Columns As Matrix();
dt2 = Open(students.jmp);
col = Column("Prefect No");
B=col<<Getasmatrix;
n=nrow(dt2);
a=j(n,1,0);
for(i=1,i<=n, i++, a=m[b,4]);
show(a);
I keep getting an error when evaluating m[,]. I tried Eval and other things but it doesn work.
Can anyone help?