do_proj.m
来自「用MATLAB实现LM算法库」· M 代码 · 共 32 行
M
32 行
function xc = do_proj( x, traj )
% DO_PROJ Performs a projection of a group of points
[ num_samples, m ] = size( x ); % m should be three !
[ num_times, m ] = size( traj );
xc = zeros( [ num_times, num_samples * 2 ] );
for time = 1:num_times
index = 1;
for sample = 1:num_samples
xc(time, index:(index + 1)) = project( x(sample,:)', traj(time,:) );
index = index + 2;
end
end
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?