本文共 242 字,大约阅读时间需要 1 分钟。
syms x f; f=x*exp(-x); e=ezplot(f,[0,4]); set(e,'Color','r','LineWidth',0.5);grid on; hold on;int(f,[0,4])
结果图:
ans = 1 - 5*exp(-4)
互相之间的计算结果是吻合的。