Hi all,
I've been searching on the internet without any succeed…
- I want to read files which are in a directory and then read data contaiedn in these files (there are columns).
- Below is my script :
cd 'C:\Users\'folder=('C:\Users\')txt=dir(fullfile('dry','*.txt'))% creation of a matrice that contains paths of files
for i=1:length(txt) fileName(i,:)=fullfile(folder,txt(i).name)end% reading of data which is contained in these files
for i=1:length(fileName) M(i,:)=importdata(fileName(i,:))end
Very easy but it doesn't work … It says : "Subscripted assignment between dissimilar structures."
Thanks for your help ! Florian
Best Answer