matlab数值积分进行运算

function SimpsonIt
a=input('input the left point a:');
b=input('input the right pointb:');
n=input('input the number of the equal disparting n:');
h=(b-a)/n;
x=a+h/2:h:b-h/2;
disp('input the function f(x):');
y=input('y=','s');
t=eval(y);
s=4*sum(t);
x=a:h:b;
t=eval(y);
s=s+2*sum(t)-t(1)-t(n+1);
s=h*s/6;
fprintf(1,'the result is:%4.4f',s);

这是辛普森算法的代码段,我用这个方法想要计算这个函数:

但是运行的输出结果是这个:

请教。

最后一行改为./,向量元素之间的乘除运算,需要用加点的乘除。y=x.^4./(exp(x)-1)

input the left point a:1e-8
input the right pointb:0.34
input the number of the equal disparting n:1000
input the function f(x):
y=x.^4./(exp(x)-1)
the result is:0.0029