如何用matlab书写复合梯形求积公式例如在0到1区间sinx的求法
a = 0; b = 1; f = sin(a:0.01:b); I = int(f, 0, 1); disp(f); disp(I);