function [S] = bigreadnplot(filename, interval) %BIGREADNPLOT Read big sensor datafile, plot and put it in a matrix. % [S] = bigreadnplot(filename,interval) reads the data into matrix S. % and plots it every interval samples. % % Kristof Van Laerhoven, kristof@comp.lancs.ac.uk path = []; if ~exist('filename'), [filename path]= uigetfile('*.txt','Pick a file:') end; i = 1; S = []; T = [1]; while (~isempty(T)), T = readsens(filename,i,i+interval); S = [S; T]; i = i + interval; if ~isempty(T), plot(T); end drawnow; end end