0

如何使用数字为我的 Matlab 表格添加条件格式(例如,背景或文本更改为颜色)。

我已经想出如何格式化我的表格的数值:

T = table;
T.field = rand(5,1)
t = T.field;

m = t ./ divNumber;
c = num2cell(m);

fun = @(x) sprintf(formatStr, x);
d = cellfun(fun, c, 'UniformOutput',0);

d(strcmp(d,'NaN')) = {''};

T.field = d
4

0 回答 0