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

📄 tcompv.m

📁 用EKF
💻 M
字号:
%-------------------------------------------------------
% composes two vectors of transformations in
% vector form
%-------------------------------------------------------
function tac=tcompv(tab,tbc),

tac = [];
%-------------------------------------------------------
% tab is a simple transformation
%-------------------------------------------------------
if size(tab,1)==3,
   tac=zeros(size(tbc));
   for t=1:3:size(tbc,1),
      tac(t:t+2) = tcomp(tab,tbc(t:t+2));
   end
%-------------------------------------------------------
% tbc is a simple transformation
%-------------------------------------------------------
elseif size(tbc,1)==3,
   tac=zeros(size(tab));
   for t=1:3:size(tab,1),
      tac(t:t+2) = tcomp(tab(t:t+2),tbc);
   end
%-------------------------------------------------------
% they have the same dimensions
%-------------------------------------------------------
elseif size(tab,1)==size(tbc,1),
   tac=zeros(size(tab));
   for t=1:3:size(tab,1),
      tac(t:t+2) = tcomp(tab(t:t+2),tbc(t:t+2));
   end
else
   error('TCOMPV: tab and tab do not have the same dimensions!!!');
end;

⌨️ 快捷键说明

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