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

📄 pdiff.m

📁 matlab 多参数积分工具箱 multivariable calculus toolbox
💻 M
字号:
function B=pdiff(A,dim,order)
%PDIFF  Partial differentiation.
%   W = PDIFF(V,DIM) is the first order partial derivative of the vector
%   function V along dimension DIM which could be one of 1, 2 and 3, or
%   'x', 'y', 'z', 'R', 'r', 'theta' and 'phi'.
%
%   W = PDIFF(V,DIM,N) is the N:th order partial derivative of the vector
%   function V along dimension DIM.

% Copyright (c) 2001-04-18, B. Rasmus Anthin.

error(nargchk(2,3,nargin))
A=vector(A);
B=A;
[x y z]=vars(A);
if nargin<3, order=1;end
name=inputname(1);
if isempty(name)
   namex='';namey='';namez='';
else
   namex=[name '.' x];
   namey=[name '.' y];
   namez=[name '.' z];
end
Ax=vec2sca(A,1);Ay=vec2sca(A,2);Az=vec2sca(A,3);
B=[pdiff(Ax,dim,order,namex)...
      pdiff(Ay,dim,order,namey)...
      pdiff(Az,dim,order,namez)];

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -