线积分和面积积分的问题,不记得了,一时也想不起。 提供几个积分函数,希望有所启发。函数1:function[out]=integral(f,from,to);index =from:0.01:to;m =length(index);for n =1:m outtp(n) =subs(f,index(n));endout=sum(outtp)*0.01;syms x yy =x^2;int(det(y),x,-2,5); //这种方式是系统自带函数