sgrhs.m
来自「matlab6矩阵微分工具 matlab6矩阵微分工具」· M 代码 · 共 20 行
M
20 行
function dw = sgrhs(t,w,flag,D)% The function dw = sgrhs(t,w,flag,D) computes the right-hand side% of the sine-Gordon system with the aid of an NxN differentiation matrix D.% The input parameter flag is set by the ODE solver.% J.A.C. Weideman, S.C. Reddy 1998 N = length(w)/2; u = w(1:N); v = w(N+1:2*N);du = v;dv = D*u-sin(u);dw = [du; dv];
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?