function [DateyyyyMMdd,Timehhmmss,Timebase,RefCh1,Sen1Ch1,Sen2Ch1,RefCh2,Sen1Ch2,Sen2Ch2,RefCh3,Sen1Ch3,Sen2Ch3,RefCh4,Sen1Ch4,Sen2Ch4,RefCh5,Sen1Ch5,Sen2Ch5,RefCh6,Sen1Ch6,Sen2Ch6,RefCh7,Sen1Ch7,Sen2Ch7,Flow1,Flow2,FlowC,PressurePa,TemperatureC,BB,ContTemp,SupplyTemp,Status,ContStatus,DetectStatus,LedStatus,ValveStatus,LedTemp,BC11,BC12,BC1,BC21,BC22,BC2,BC31,BC32,BC3,BC41,BC42,BC4,BC51,BC52,BC5,BC61,BC62,BC6,BC71,BC72,BC7,K1,K2,K3,K4,K5,K6,K7,TapeAdvCount,VarName68,VarName69,VarName70,Vaisala_CO2,Vaisala_CO2Raw,Vaisala_Temp,SSD_Temp_Inlet,SSD_RH_inlet,SSD_DP_Inlet,SSD_Temp_Outlet,SSD_RH_Outlet,SSD_DP_Outlet] = importfile_AE33_Camp18(filename)
%IMPORTFILE Import numeric data from a text file as column vectors.
%   [DATEYYYYMMDD,TIMEHHMMSS,TIMEBASE,REFCH1,SEN1CH1,SEN2CH1,REFCH2,SEN1CH2,SEN2CH2,REFCH3,SEN1CH3,SEN2CH3,REFCH4,SEN1CH4,SEN2CH4,REFCH5,SEN1CH5,SEN2CH5,REFCH6,SEN1CH6,SEN2CH6,REFCH7,SEN1CH7,SEN2CH7,FLOW1,FLOW2,FLOWC,PRESSUREPA,TEMPERATUREC,BB,CONTTEMP,SUPPLYTEMP,STATUS,CONTSTATUS,DETECTSTATUS,LEDSTATUS,VALVESTATUS,LEDTEMP,BC11,BC12,BC1,BC21,BC22,BC2,BC31,BC32,BC3,BC41,BC42,BC4,BC51,BC52,BC5,BC61,BC62,BC6,BC71,BC72,BC7,K1,K2,K3,K4,K5,K6,K7,TAPEADVCOUNT,VARNAME68,VARNAME69,VARNAME70,VAISALA_CO2,VAISALA_CO2RAW,VAISALA_TEMP,SSD_TEMP_INLET,SSD_RH_INLET,SSD_DP_INLET,SSD_TEMP_OUTLET,SSD_RH_OUTLET,SSD_DP_OUTLET]
%   = IMPORTFILE(FILENAME) Reads data from text file FILENAME for the
%   default selection.
%
%   [DATEYYYYMMDD,TIMEHHMMSS,TIMEBASE,REFCH1,SEN1CH1,SEN2CH1,REFCH2,SEN1CH2,SEN2CH2,REFCH3,SEN1CH3,SEN2CH3,REFCH4,SEN1CH4,SEN2CH4,REFCH5,SEN1CH5,SEN2CH5,REFCH6,SEN1CH6,SEN2CH6,REFCH7,SEN1CH7,SEN2CH7,FLOW1,FLOW2,FLOWC,PRESSUREPA,TEMPERATUREC,BB,CONTTEMP,SUPPLYTEMP,STATUS,CONTSTATUS,DETECTSTATUS,LEDSTATUS,VALVESTATUS,LEDTEMP,BC11,BC12,BC1,BC21,BC22,BC2,BC31,BC32,BC3,BC41,BC42,BC4,BC51,BC52,BC5,BC61,BC62,BC6,BC71,BC72,BC7,K1,K2,K3,K4,K5,K6,K7,TAPEADVCOUNT,VARNAME68,VARNAME69,VARNAME70,VAISALA_CO2,VAISALA_CO2RAW,VAISALA_TEMP,SSD_TEMP_INLET,SSD_RH_INLET,SSD_DP_INLET,SSD_TEMP_OUTLET,SSD_RH_OUTLET,SSD_DP_OUTLET]
%   = IMPORTFILE(FILENAME, STARTROW, ENDROW) Reads data from rows STARTROW
%   through ENDROW of text file FILENAME.
%
% Example:
%   [DateyyyyMMdd,Timehhmmss,Timebase,RefCh1,Sen1Ch1,Sen2Ch1,RefCh2,Sen1Ch2,Sen2Ch2,RefCh3,Sen1Ch3,Sen2Ch3,RefCh4,Sen1Ch4,Sen2Ch4,RefCh5,Sen1Ch5,Sen2Ch5,RefCh6,Sen1Ch6,Sen2Ch6,RefCh7,Sen1Ch7,Sen2Ch7,Flow1,Flow2,FlowC,PressurePa,TemperatureC,BB,ContTemp,SupplyTemp,Status,ContStatus,DetectStatus,LedStatus,ValveStatus,LedTemp,BC11,BC12,BC1,BC21,BC22,BC2,BC31,BC32,BC3,BC41,BC42,BC4,BC51,BC52,BC5,BC61,BC62,BC6,BC71,BC72,BC7,K1,K2,K3,K4,K5,K6,K7,TapeAdvCount,VarName68,VarName69,VarName70,Vaisala_CO2,Vaisala_CO2Raw,Vaisala_Temp,SSD_Temp_Inlet,SSD_RH_inlet,SSD_DP_Inlet,SSD_Temp_Outlet,SSD_RH_Outlet,SSD_DP_Outlet] = importfile('AE33_AE33-S02-00193_20180101.dat',6, 1445);
%
%    See also TEXTSCAN.

% Auto-generated by MATLAB on 2019/02/14 16:09:40

%% Initialize variables.
delimiter = {' ',';'};
if nargin<=2
    startRow = 6;
    endRow = inf;
end

%% Format string for each line of text:
%   column1: datetimes (%{yyyy/MM/dd}D)
%	column2: datetimes (%{HH:mm:ss}D)
%   column3: double (%f)
%	column4: double (%f)
%   column5: double (%f)
%	column6: double (%f)
%   column7: double (%f)
%	column8: double (%f)
%   column9: double (%f)
%	column10: double (%f)
%   column11: double (%f)
%	column12: double (%f)
%   column13: double (%f)
%	column14: double (%f)
%   column15: double (%f)
%	column16: double (%f)
%   column17: double (%f)
%	column18: double (%f)
%   column19: double (%f)
%	column20: double (%f)
%   column21: double (%f)
%	column22: double (%f)
%   column23: double (%f)
%	column24: double (%f)
%   column25: double (%f)
%	column26: double (%f)
%   column27: double (%f)
%	column28: double (%f)
%   column29: double (%f)
%	column30: double (%f)
%   column31: double (%f)
%	column32: double (%f)
%   column33: double (%f)
%	column34: double (%f)
%   column35: double (%f)
%	column36: double (%f)
%   column37: double (%f)
%	column38: double (%f)
%   column39: double (%f)
%	column40: double (%f)
%   column41: double (%f)
%	column42: double (%f)
%   column43: double (%f)
%	column44: double (%f)
%   column45: double (%f)
%	column46: double (%f)
%   column47: double (%f)
%	column48: double (%f)
%   column49: double (%f)
%	column50: double (%f)
%   column51: double (%f)
%	column52: double (%f)
%   column53: double (%f)
%	column54: double (%f)
%   column55: double (%f)
%	column56: double (%f)
%   column57: double (%f)
%	column58: double (%f)
%   column59: double (%f)
%	column60: double (%f)
%   column61: double (%f)
%	column62: double (%f)
%   column63: double (%f)
%	column64: double (%f)
%   column65: double (%f)
%	column66: double (%f)
%   column67: double (%f)
%	column68: double (%f)
%   column69: double (%f)
%	column70: double (%f)
%   column71: double (%f)
%	column72: double (%f)
%   column73: double (%f)
%	column74: double (%f)
%   column75: double (%f)
%	column76: double (%f)
%   column77: double (%f)
%	column78: double (%f)
%   column79: text (%s)
% For more information, see the TEXTSCAN documentation.
formatSpec = '%{yyyy/MM/dd}D%{HH:mm:ss}D%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%s%[^\n\r]';

%% Open the text file.
fileID = fopen(filename,'r');

%% Read columns of data according to format string.
% This call is based on the structure of the file used to generate this
% code. If an error occurs for a different file, try regenerating the code
% from the Import Tool.
textscan(fileID, '%[^\n\r]', startRow(1)-1, 'ReturnOnError', false);
dataArray = textscan(fileID, formatSpec, endRow(1)-startRow(1)+1, 'Delimiter', delimiter, 'MultipleDelimsAsOne', true, 'ReturnOnError', false);
for block=2:length(startRow)
    frewind(fileID);
    textscan(fileID, '%[^\n\r]', startRow(block)-1, 'ReturnOnError', false);
    dataArrayBlock = textscan(fileID, formatSpec, endRow(block)-startRow(block)+1, 'Delimiter', delimiter, 'MultipleDelimsAsOne', true, 'ReturnOnError', false);
    for col=1:length(dataArray)
        dataArray{col} = [dataArray{col};dataArrayBlock{col}];
    end
end

%% Close the text file.
fclose(fileID);

%% Post processing for unimportable data.
% No unimportable data rules were applied during the import, so no post
% processing code is included. To generate code which works for
% unimportable data, select unimportable cells in a file and regenerate the
% script.

%% Allocate imported array to column variable names
DateyyyyMMdd = dataArray{:, 1};
Timehhmmss = dataArray{:, 2};
Timebase = dataArray{:, 3};
RefCh1 = dataArray{:, 4};
Sen1Ch1 = dataArray{:, 5};
Sen2Ch1 = dataArray{:, 6};
RefCh2 = dataArray{:, 7};
Sen1Ch2 = dataArray{:, 8};
Sen2Ch2 = dataArray{:, 9};
RefCh3 = dataArray{:, 10};
Sen1Ch3 = dataArray{:, 11};
Sen2Ch3 = dataArray{:, 12};
RefCh4 = dataArray{:, 13};
Sen1Ch4 = dataArray{:, 14};
Sen2Ch4 = dataArray{:, 15};
RefCh5 = dataArray{:, 16};
Sen1Ch5 = dataArray{:, 17};
Sen2Ch5 = dataArray{:, 18};
RefCh6 = dataArray{:, 19};
Sen1Ch6 = dataArray{:, 20};
Sen2Ch6 = dataArray{:, 21};
RefCh7 = dataArray{:, 22};
Sen1Ch7 = dataArray{:, 23};
Sen2Ch7 = dataArray{:, 24};
Flow1 = dataArray{:, 25};
Flow2 = dataArray{:, 26};
FlowC = dataArray{:, 27};
PressurePa = dataArray{:, 28};
TemperatureC = dataArray{:, 29};
BB = dataArray{:, 30};
ContTemp = dataArray{:, 31};
SupplyTemp = dataArray{:, 32};
Status = dataArray{:, 33};
ContStatus = dataArray{:, 34};
DetectStatus = dataArray{:, 35};
LedStatus = dataArray{:, 36};
ValveStatus = dataArray{:, 37};
LedTemp = dataArray{:, 38};
BC11 = dataArray{:, 39};
BC12 = dataArray{:, 40};
BC1 = dataArray{:, 41};
BC21 = dataArray{:, 42};
BC22 = dataArray{:, 43};
BC2 = dataArray{:, 44};
BC31 = dataArray{:, 45};
BC32 = dataArray{:, 46};
BC3 = dataArray{:, 47};
BC41 = dataArray{:, 48};
BC42 = dataArray{:, 49};
BC4 = dataArray{:, 50};
BC51 = dataArray{:, 51};
BC52 = dataArray{:, 52};
BC5 = dataArray{:, 53};
BC61 = dataArray{:, 54};
BC62 = dataArray{:, 55};
BC6 = dataArray{:, 56};
BC71 = dataArray{:, 57};
BC72 = dataArray{:, 58};
BC7 = dataArray{:, 59};
K1 = dataArray{:, 60};
K2 = dataArray{:, 61};
K3 = dataArray{:, 62};
K4 = dataArray{:, 63};
K5 = dataArray{:, 64};
K6 = dataArray{:, 65};
K7 = dataArray{:, 66};
TapeAdvCount = dataArray{:, 67};
VarName68 = dataArray{:, 68};
VarName69 = dataArray{:, 69};
VarName70 = dataArray{:, 70};
Vaisala_CO2 = dataArray{:, 71};
Vaisala_CO2Raw = dataArray{:, 72};
Vaisala_Temp = dataArray{:, 73};
SSD_Temp_Inlet = dataArray{:, 74};
SSD_RH_inlet = dataArray{:, 75};
SSD_DP_Inlet = dataArray{:, 76};
SSD_Temp_Outlet = dataArray{:, 77};
SSD_RH_Outlet = dataArray{:, 78};
SSD_DP_Outlet = dataArray{:, 79};

% For code requiring serial dates (datenum) instead of datetime, uncomment
% the following line(s) below to return the imported dates as datenum(s).

% DateyyyyMMdd=datenum(DateyyyyMMdd);
% Timehhmmss=datenum(Timehhmmss);


