I am trying to import a number of text files into my workspace so that I can do some data analysis and post-processing on them. The problem is these files are located in folders that are not in my current directory. I know I can change my directory or import them manually using the GUI but I would prefer to have some function that can import them immediately and that I can incorporate this function into my post-processing m-code.
I previously used something like this to import the files from the current directory:
files = dir('*.lvm');
eval(['load ' files(i).name ' R3F1T_']);
Maybe there is a way of modifying this simple code to allow me to import the same data from differnt folders?
Thanks in advance