What is the class of dgain? If it is MATLAB table then try this
g = gcf;
u = uitable(g,'Data',table2cell(dgain),'RowName',rn,'Position',[60,343,300,90],...
'ColumnName',cn,'ColumnFormat',{'bank','bank'});
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!