Hi, guys. I want to automatically import excelfiles into MATLAB. I use this code.
--------------------------------------------source_dir = 'C:/Users/Cju/Documents/MATLAB/a' ;source_files = dir(fullfile(source_dir, '*.xlsx'));for i = 1:length(source_files) ; data(i) = xlsread(fullfile(source_dir, source_files(i).name));end--------------------------------------------
But just import final file. What is wrong?
Best Answer