% use file selector of xff class (you might have to change the file type % in the selector from ''*.txt'' to ''*.*'' in case the extension is not TXT! gsr = xff('*.ntt', 'Please select the text-based GSR file to work will...'); % the data is then available as data = gsr.Data(:, CHANNEL);