city = {'NYC'; 'CHI'; 'SEA'; 'LAX'; 'MIA'};

% upper triangular portion of distances matrix
D = [712, 2405, 2451, 1094, ...
          1737, 1745, 1189, ...
                 961, 2734, ...
                      2339];

% represent distance matrix as a table
citydist = table ('Size', [5, 5], 'VariableTypes', ...
                repmat({'double'}, 1,5));

citydist{:,:} = squareform(D);
citydist.Properties.VariableNames = city;
citydist.Properties.RowNames = city;

