testnestfun.m

来自「New users and old of optimization in MAT」· M 代码 · 共 12 行

M
12
字号
function x = testnestfun(y)  function res = nestfun(xi)    res = erf(xi) - yi;  endx = zeros(size(y));start = 0;for i=1:prod(size(y))  yi = y(i);  x(i) = fzero(@nestfun,start,optimset('disp','off'));endend % testnestfun terminator

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?