for file = 1:total_files[inputfile,path] = uigetfile('*.txt');fileids{file} = fopen(fullfile(path, inputfile));if fileids{file} == -1 error('Failed to open file "%s"', fullfile(path, inputfile));endb = textscan(fileids{file},'%n %n %*n %*n %*n %*n %*n',-1, 'delimiter', '/t');events = b{1};event_times = b{2};
I want to read in only fhe first two columns out of 7. This works. However, I can only read in the first row.
Best Answer