%% Create and Format Table from Text File
% Load the file myCsvTable.dat and preview its contents in a text editor. A screen shot is shown below. Notice that the file contains comma-separated column oriented data.

filename = 'myCsvTable.dat';

%
%
% Create a table from the comma-separated text file. Import the first two columns as character vectors, the third column as uint32, and the next two columns as double-precision, floating-point numbers. Import the entries of the last column as character vectors.

T = readtable(filename,'Format','%s%s%u%f%f%s')

% The conversion specifiers are %s for a cell array of character vectors, %f for double, and %u for uint32.
% Copyright 2012 The MathWorks, Inc.