Using scan to loop across differenet length of vectors

Eventually, I try to estimate the learning rate (latent variable) based on stimuli presentation, electric shocks, and the outcome measure (skin conductance).
Let’s say I have 3 sets of trial lengths (69, 67, 65). I build a matrix for each, then how do I loop through them to send to the specific scan loop? via switch?