generate table3 in gen_results.m