?? folinmod.m
字號:
function [f, J] = fOlinMod(x, ctrl, t, u)
%Call: [f J]=fOlinMod(x,ctrl,t,u)
%Evaluate the residuals corresponding
%to the objective in a nonlinear lsq problem.
%If ctrl>0 the Jacobian J should be computed.
%Objective: 0.5*norm2(f)
%The problem is defined as
% min 0.5*norm2(f(x))
% where f(x,u)=x(1)/(1+x(2)*t)
%and t,u are given. No constraints are present!
%
if ctrl == 0
f=x(1)./(1+x(2).*t)-u;
f=f(:);
J = [];
else
%The Jacobian is computed analytically
f=[];
J=[1./(1+x(2).*t) -x(1).*t./(1+x(2).*t).^2];
end
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -