Matlab4-数值计算答题.pptVIP

  • 7
  • 0
  • 约7.13千字
  • 约 38页
  • 2016-12-04 发布于湖北
  • 举报
第四章 MATLAB数值计算 某些问题不存在符号解时,又无其他自由参数,考虑误差、收敛性和稳定性问题,给出数值解。 4.1数值极值点 4.2函数微积分 4.3常微分方程 4.4多项式及其操作 4.5 曲线拟合 4.6 曲线插值 4.1数值极值点 fminbnd()求单变量函数在定点区域的最小值 x = fminbnd(fun,x1,x2) x = fminbnd(fun,x1,x2,options) [x,fval] = fminbnd(...) [x,fval,exitflag] = fminbnd(...) [x,fval,exitflag,output] = fminbnd(...) 1)建立M文件 x = fminbnd(@myfun,x1,x2); function f = myfun(x) f = ... 2)匿名函数 x = fminbnd(@(x) sin(x*x),x1,x2); 例4.1 f = @(x)x.^3-2*x-5; x = fminbnd(f, 0, 2) 结果为 x = 0.8165 y = f(x) y = -6.0887 4.1.2多元函数的极小值点 求多元极小值点主要有两种方法:单纯行下山法(Downhill simplex methods)和拟牛

文档评论(0)

1亿VIP精品文档

相关文档