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

📄 gapatch.m

📁 这是几何代数的matlab工具包
💻 M
字号:
function GAPatch(pts,c)%GAPatch(pts,c): Draw a patch in color c (optional)%%See also gable.% GABLE, Copyright (c) 1999, University of Amsterdam% Copying, use and development for non-commercial purposes permitted.%          All rights for commercial use reserved; for more information%          contact Leo Dorst (leo@wins.uva.nl).%%          This software is unsupported.  if nargin == 1    c = 'y';  end% Convert character color to RGB tripleif isa(c,'char')   if strncmp(c,'r',1)      c = [1 0 0];   elseif strncmp(c,'g',1)      c = [0 1 0];   elseif strncmp(c,'b',1)      c = [0 0 1];   elseif strncmp(c,'c',1)      c = [0 1 1];   elseif strncmp(c,'m',1)      c = [1 0 1];   elseif strncmp(c,'y',1)      c = [1 1 0];   elseif strncmp(c,'w',1)      c = [1 1 1];   endend  for i=1:length(pts)     p = pts{i};     x(i)=p.m(2);     y(i)=p.m(3);     z(i)=p.m(4);  end  patch(x,y,z,c);

⌨️ 快捷键说明

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