Message Boards Message Boards

Plot auto-extracted sub-matrices?

GROUPS:

I have a 70x16 matrix ("DATA22K") in which the first column represents time, and the next 15 columns represent trials of a timecourse assay I've performed (n 1 thru 15). I would like to quickly create 15 submatrices with time (col 1) plotted against the values for each trial, each having iterated names of the format "Tr22Ki" (where i = 1 - 15). This is the code I'm using to generate the table of matrices (which seems to work):

Table[Evaluate[Symbol["Tr22K" <> ToString[i]]] == 
Transpose[{DATA22K[[All, 1]], DATA22K[[All, i]]}], {i, 2, 15, 1}];

THE PROBLEM: I used to be able to generate a graph with all Tr22Ki traces superimposed over each other with this code:

ListLinePlot[Tr22Ki]

but it no longer works (blank graph), and I can't figure out why. There is no error code, but I've checked, and all the matrices have been made. The same happens when I write the code as:

Tr22Kall=Table[Evaluate[Symbol["Tr22K" <> ToString[i]]] == 
Transpose[{DATA22K[[All, 1]], DATA22K[[All, i]]}], {i, 2, 15, 1}];
ListLinePlot[Tr22Kall]

Please help! Thank you for your time.

POSTED BY: Jesse Martin
Answer
3 months ago

Hi Jesse, I guess you should use Set (=) instead of Equal (==).

Regards -- Henrik

POSTED BY: Henrik Schachner
Answer
3 months ago

Group Abstract Group Abstract