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

📄 plotmod.m

📁 解决麦克斯韦的matlab源文件
💻 M
字号:
function plotmod(mesh,vals,titstr)% Creates a 3D surface plot of a vectorfield defined in the% vertices of an unstructured mesh. % % mesh -> Data for 2D unstructured mesh% vals -> column vector whose length must agree with mesh.Nvif (size(vals,1) ~= 2*mesh.Nv), error('Size mismatch for argument vector'); endif (size(vals,2) ~= 1), error('Vals must be a colun vector'); endif (nargin < 3), titstr = 'Modulus of nodal vectorfield'; endmods = sqrt((vals(1:2:2*mesh.Nv-1,1).^2+vals(2:2:2*mesh.Nv,1).^2));hold on;title(titstr);trisurf(mesh.trv,mesh.vt(:,1),mesh.vt(:,2),mods);shading interp;hold off;

⌨️ 快捷键说明

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