I have a folder with a bunch of .mat files with many different variables each. I want to store (an) individual variable(s) into separate matrices. I made a for loop with which I loaded every file by name but that only gives me the last .mat file. I'm new to Matlab and I'm assuming there's a really simple way to go about this but I haven't had luck finding anything.
Thanks!
Edit: OK so I have a whole bunch of .mat files with a variable X in each one. I want to store all the Xs into separate matrices that correspond to each separate .mat file.