matlab中怎么 用fsolve函数求方程y=x^3+10*x^2-2*sin(x)-50

问题描述:

matlab中怎么 用fsolve函数求方程y=x^3+10*x^2-2*sin(x)-50

fun.mfunction f=fun(x)f=x.^3+10*x.^2-2*sin(x)-50;>>[x,f,h]=fsolve(@fun,[-4,4])x =-2.564769814322712 2.070673355182788f =1.0e-007 *-0.000000071054274 0.114992886324217h =1