Hi and I am little bit new in matlab. I have two different folders in my laptop, each one contains about 400 different files. I want to load all these files (400 from first folder and 400 from second folder), I tried like that but doesn't work:
folder1=('E:\results\1\');
folder2=('E:\results\2\');
data=load([folder1,'*.m']);
data1=load([folder2,'*.m']);
and then I want to take first file from folder1 and subtracted from first file from folder1 and save it in new folder. and do that for all other files ... etc can some expert give me any suggerstion!! thanks in advance.
Pretty sure
loadtakes one file at a time. Try a simple variant like this:There are other, more one liner ways, but this is a fairly pedantic.