2016年11月3日

matlab中fminbnd函数求最小或者组大值

摘要: clc; clear all; close all; fx = @(x) -(0.4./sqrt(1 + x.^2) - sqrt(1+x.^2) .* (1- 0.4./(1 + x.^2))+x); [x0, f] =fminbnd(fx,0,2); % f利用负号求最小值 x = 0 :0.1: 2; y = feval(fx,x); %% ========maxvalue==== f... 阅读全文

posted @ 2016-11-03 09:50 Kermit.Li 阅读(7362) 评论(0) 推荐(0) 编辑

导航