create_input_mats.formula_list function

Create input matrices from formula