matlab求一元函数零点f=4.268x^3-4.987x^2+1.786x+2.039-2.23978在区间[0.2,0.36]的零点

问题描述:

matlab求一元函数零点
f=4.268x^3-4.987x^2+1.786x+2.039-2.23978在区间[0.2,0.36]的零点

>> f=@(x)4.268*x.^3-4.987*x.^2+1.786*x+2.039-2.23978;>> x=fsolve(f,[0.2 0.36])Equation solved.fsolve completed because the vector of function values is near zeroas measured by the default value of the...