diff_1d.m
来自「有关the method of line即MOL算法的matlab代码」· M 代码 · 共 22 行
M
22 行
_ function [xz]=diff_1D(n,D,x)
%...
%... A. Vande Wouwer, P. Saucez and W.E. Schiesser (2002)
%...
%... function diff_1D computes a first-order derivative over a one-
%... dimensional domain using either centered or biased upwind
%... approximations.
%...
%... argument list
%...
%... n number of grid points (input)
%...
%... D differentiation matrix (input)
%...
%... x one-dimensional array containing the dependent vari-
%... able which is to be differentiated with respect to
%... independent variable (input)
%...
%... compute the derivative using the differentiation matrix
%...
xz=D*x;
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?