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

📄 drawpoint.m

📁 这是几何代数的matlab工具包
💻 M
字号:
function DrawPoint(P,c,size)% DrawPoint(P,c,size) - draw a point along the tips of the vector arguments%  P: a cell array of GA vectors%  c: an optional color argument%  size: optional point size%%See also gable.% GABLE, Copyright (c) 2001, 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.l = length(P);if nargin == 1     c = 'b';elseif nargin == 2     size = 15;elseif nargin > 3     error('DrawPoint: takes only 3 arguments');endx = zeros(1,l);y = zeros(1,l);z = zeros(1,l);for i = 1:l	v = m(GA(P{i}));	if ~GAisa(GAZ(P{i}),'vector')		error('DrawPoint: all objects in P must be vectors.');	end	x(i) = v(2);	y(i) = v(3);	z(i) = v(4);endplot3(x,y,z,'.','MarkerSize',size,'Color',c);hold on;axis('equal');

⌨️ 快捷键说明

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