matrix_cols function

Find columns that contain matrices