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

📄 vec2sca.m

📁 matlab 多参数积分工具箱 multivariable calculus toolbox
💻 M
字号:
function S=vec2sca(V,dim)
%VEC2SCA  Convert vector to scalar.
%   S = VEC2SCA(V,DIM) where DIM is one of the numbers 1, 2 and 3.
%   This is the same as S = V.x, S = V.y or S = V.z.
%   Used internally by some vector methods.

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

[x y z]=vars(V);
switch(dim)
case 1, S=eval(['V.' x]);
case 2, S=eval(['V.' y]);
case 3, S=eval(['V.' z]);
end

⌨️ 快捷键说明

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