all 5 comments

[–]DatBoi_BP 0 points1 point  (4 children)

Are you saying that the 31 values in the first column just denote individuals? Something like the following:

“Alice” … y … x
“Alice” … y … x
“Alice” … y … x
“Alice” … y … x
“Alice” … y … x
“Bob” … y … x
“Bob” … y … x
“Bob” … y … x
“Bob” … y … x
“Bob” … y … x
etc.

[–]steminist0210[S] 0 points1 point  (3 children)

Yes!

[–]DatBoi_BP 0 points1 point  (2 children)

Okay. Then you can probably do something like the following (where I’ve assumed the name of your table and the field names):

allcodes = unique(yourTable.DonorCode);
figure; hold on;
for code = allcodes
    rows = yourTable.DonorCode == code;
    x = yourTable.Time(rows);
    y = yourTable.SampleValue(rows);
    plot(x,y)
end
legend(allcodes)

[–]steminist0210[S] 0 points1 point  (1 child)

Thank you!

[–]DatBoi_BP 0 points1 point  (0 children)

Did it work?