arve9066
Member level 2

I have a mat file that contains variables named deterministically like a1_1,a1_2,a1_3.... a1_n.. n is variable depending on the mat file I read, but the naming convention remains the same. I need to read all of these in a loop that goes from 1 to n. What is the best way to achieve this?