📄 residual.m
字号:
function A = residual(A)% residual.m Nonlinear equation model object residual update.%% INPUT/OUTPUT PARAMETERS% A : an object derived from the neqmodel class%% Copyright (c) by Raymond A. Adomaitis, 1998-2005unpack(A,'var')unpack(A,'param')if colloc c = a; Rp = DDr*c - tm^2*c^2; Rp = setbval(Rp,Dr*c,'r','min'); % BC residuals Rp = setbval(Rp,c-1, 'r','max');else c = One + a*P; R = DDr*c - tm^2*c^2; Rp = wip(R,P); endA = set(A,'resid',Rp);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -