
% Auto-generated by MATLAB on 2018/12/21 16:57:00

%% Initialize variables.
filename = 'MinimumSh.txt';
delimiter = ' ';
startRow = 3;

formatSpec = '%f%f%f%f%f%*s%*s%*s%*s%*s%[^\n\r]';

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

dataArray = textscan(fileID, formatSpec, 'Delimiter', delimiter, 'MultipleDelimsAsOne', true, 'TextType', 'string', 'EmptyValue', NaN, 'HeaderLines' ,startRow-1, 'ReturnOnError', false, 'EndOfLine', '\r\n');

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

%% Create output variable
MinimumSh = table(dataArray{1:end-1}, 'VariableNames', {'Lat','Lon','Dep','Sh','Sh_uncertainty'});

%% Clear temporary variables
clearvars filename delimiter startRow formatSpec fileID dataArray ans;