From: Jan Simon on
Dear Jonas again!

> S.b.time = rand(1, 10);
> S.b.time = rand(1, 10);
Typo! ==>
> S.b.time = rand(1, 10);
> S.c.time = rand(1, 10);

I forgot to mention, that I'd recomment a field of structs:
S.Value(1).time, S.Value(2).time, etc.
This is clear, clean, does not create large tables of field names, which has to be searched for each access and allows for an easier concatenation:
timeArray = cat(1, S.Value.time);

Jan