f_compute_remain.m

来自「雷达目标跟踪matlab源程序 希望对大家能够有所帮助」· M 代码 · 共 23 行

M
23
字号
function [input_mes_rt,input_mes_total_rt]=f_compute_remain(M,input_mes,input_mes_total,new_target_total,asso_mes)
%计算未关联到的量测及数目

temp1=[];
temp2=linspace(0,0,M-1);

for i=2:M 
    mes_index=sum(input_mes_total(1:i-1));
    for j=1:input_mes_total(i) 
         if new_target_total==0
             temp1=[temp1 input_mes(:,mes_index+j)]
             temp2(i-1)=temp2(i-1)+1;
         elseif isempty(find(j==asso_mes(:,M)))
             temp1=[temp1 input_mes(:,mes_index+j)];%未关联上的量测 
             temp2(i-1)=temp2(i-1)+1;
         end
         
     end
end
          
input_mes_rt=temp1;
input_mes_total_rt=temp2;

⌨️ 快捷键说明

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