I have 10 .mat files with 5 variables each. I want to load them automatically in MATLAB into one Matrix were the values of the variables are inserted one after another. And I want to insert a counter on the right that tells me the number of the file.
[Var1 Var2 Var3 Var4 Var5 CounterValfile1 Valfile1 Valfile1 Valfile1 Valfile1 1Valfile1 Valfile1 Valfile1 Valfile1 Valfile1 1Valfile1 Valfile1 Valfile1 Valfile1 Valfile1 1Valfile2 Valfile2 Valfile2 Valfile2 Valfile2 2Valfile2 Valfile2 Valfile2 Valfile2 Valfile2 2Valfile2 Valfile2 Valfile2 Valfile2 Valfile2 2...
Is that possible with a for loop?
Best Answer