https://in.mathworks.com/help/matlab/ref/table.html#mw_eed92014-a41e-4ffa-a43d-4f1b948c083c - follow the instructions in the link
T = table((1:10).',(2:11).') % sample table
t.S = 1:5; % sample structure
t.K = rand;
f = fieldnames(t);
c = struct2cell(t);
T = addprop(T,f,repmat({'table'},size(f)))
for k = 1:numel(f)
T.Properties.CustomProperties.(f{k}) = c{k};
end
T.Properties