0001 % Normally this script will be called from get_data, but if the data has 0002 % bad samples you should tell get_data not to save, remove the bad 0003 % samples then call this script to save. 0004 0005 s = filesep; 0006 0007 save('-V6', ['data' s 'TSL2561_meter_output' s fname], 'sensitivity', ... 0008 'int_time', 'distance', 'counts_light', 'counts_dark')