⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 diff_1d.m

📁 有关the method of line即MOL算法的matlab代码
💻 M
字号:
_      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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -