%% Remove Literal Text
% Remove the literal text 'Level' from each field in the second column of the data from the previous example. A preview of the file is shown below.
%
%
% Open the file and match the literal text in the formatSpec input.

filename = 'scan1.dat';
fileID = fopen(filename);
C = textscan(fileID,'%s Level%d %f32 %d8 %u %f %f %s %f');
fclose(fileID);
C{2}

%
% View the MATLAB® data type of the second cell in C. The second cell of the 1-by-9 cell array, C, is now of data type int32.

disp( class(C{2}) )

% Copyright 2012 The MathWorks, Inc.