You may consider using lists (AKA "systems" ). If the input values are obtained as matrix, then the function sys2mat from the CustomFunctions
Plugin may help.

Technische Mechanik mit SMath Studio: https://link.springer.com/book/10.1007/978-3-658-50592-9