%% table_example.m

filename = "data_matrix.csv";
tbl = readtable (filename);

fprintf('matrix size %d %d', size(tab))

%% Accessing Columns and Rows

disp('first row');
tbl (1,:)
disp('column named Gene');
tbl (:, 'Gene')
disp('Accesing column variables')
tab.Sample_1

%% Reading and Assigning names to rows

frm = readtable (filename, 'ReadRowNames', true)
disp('values of row Gene_4');
frm('Gene_4',:)

disp('values of row Gene_3 in column Sample_2');
frm.Sample_2('Gene_3')
