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

📄 orthogonalize.m

📁 这是几何代数的matlab工具包
💻 M
字号:
function N = Orthogonalize(normal,basis,CLsize)%Orthogonalize(n,b,s): Gives a basis orthogonal to the normal.%First argument is the normal vector, second is the basis matrix%third is the size of a GA (optional).if nargin<3    CLsize=8;endN=[];  ni=normal;   Imax=size(basis,2);for i=Imax:-1:1    Ii=inverse(ni);    for j = 1:i	m = GAproduct(GAouter(GA(basis(1:CLsize,j)),ni),Ii);	R(1:CLsize,j) = m.m;    end    T=R(1:CLsize,1);    ni=GA(T)    v=norm(ni);    if v == 0	M = T;    else	M = (1/v)*T;    end    N=[N,M];    basis=basis(1:CLsize,2:size(basis,2));end

⌨️ 快捷键说明

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