currently some of my Uitable is decimal and some is scientific notation. I would like to make it all decimal and be able to control the number of decimal places. Anyone know how to set the output to decimal and be able to change the number of decimals in the context of my code? (below)
f = figure('Position',[1 1 500 250]);%Row and column names
cnames = {'C1','C2'};rnames = {'R1','R2','R3'... 'R4', 'R5', 'R6'... 'R7','R8',... 'R9', 'R10'... 'R11' };% create the data
d = [SmI SmD ; RmI RmD ; KmI KmD ; RthI RthD;QjthI QjthD;... QjthISS QjthDSS;QpcI QpcD; QpcISS QpcDSS; QphI QphD;... QphISS QphDSS;ZmI ZmD];% Create the uitable
t = uitable('Data',d,... 'ColumnName',cnames,... 'RowName',rnames);% Set width and height
tableextent = get(t,'Extent');oldposition = get(t,'Position');newposition = [oldposition(1) oldposition(2) tableextent(3)... tableextent(4)];set(t, 'Position', newposition);
Best Answer