我用eval连续生成vector:
for ik = 1:4
for iz = 1:3
for iv = 1:3
eval(['k_z_v' num2str(ik) num2str(iz) num2str(iv) ' =
Nc(:,47,ik,iz,iv);'])
end
end
end
想要把这些变量(向量)画出表格, 只能很白痴的:
table(k_z_v_111,k_z_v_112,k_z_v_113,k_z_v_121,k_z_v_122,k_z_v_123,...
k_z_v_131,k_z_v_132,k_z_v_133,k_z_v_211,k_z_v_212,k_z_v_213,k_z_v_221,k_z_v_222,...
k_z_v_223,k_z_v_231,k_z_v_232,k_z_v_233,k_z_v_311,k_z_v_312,k_z_v_313,...
k_z_v_321,k_z_v_322,k_z_v_323,k_z_v_331,k_z_v_332,k_z_v_333,k_z_v_411,...
k_z_v_412,k_z_v_413,k_z_v_421,k_z_v_422,k_z_v_423,k_z_v_431,k_z_v_432,k_z_v_433)
我知道可以用 eval(['k_z_v' num2str(ik) num2str(iz) num2str(iv)'])
循环叫出所有的vector
但如何把喂给table?
税后500p