gasurf.m

来自「这是几何代数的matlab工具包」· M 代码 · 共 27 行

M
27
字号
function GASurf(pts,c)%GASurf(pts,c): Plot a grid of GA vectors%%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 = .5;  end  M = size(pts,1);  N = size(pts,2);  for i=1:M      for j=1:N	  p = pts{i,j};	  x(i,j) = p.m(2);	  y(i,j) = p.m(3);	  z(i,j) = p.m(4);	  C(i,j) = c;      end  end  surface(x,y,z,C);

⌨️ 快捷键说明

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