如果你把变量作为表中的列,你可以这样做:
t =表;
t.RIC = rand(14,1);
t.RLT = rand(14,1);
t.ROB = rand(14,1);
t.RPEC = rand(14,1);
trps = rand(14,1);
t.RRA = rand(14,1);
t.RUT = rand(14,1);
t
timeLimits(1) = 3;
timeLimits(2) = 10;
投资回报率=时限(1):时限(2);
t_ROI = t(ROI,:)