is_elements.m
来自「对运动声目标进行航迹跟踪」· M 代码 · 共 47 行
M
47 行
function is_elements(ID,XY,ID1,ID2)
XY_x=XY(:,1);
XY_y=XY(:,2);
IP=190+ID;
if ID==ID1 || ID==ID2
cr='r';
else
cr='b';
end
switch ID
case 0
text(XY_x+5,XY_y-13,num2str(IP),'color',cr,'FontWeight','bold');
case 3
text(XY_x-15,XY_y+13,num2str(IP),'color',cr,'FontWeight','bold');
case 4
text(XY_x-4,XY_y+13,num2str(IP),'color',cr,'FontWeight','bold');
case 5
text(XY_x-4,XY_y-13,num2str(IP),'color',cr,'FontWeight','bold');
case 6
text(XY_x-4,XY_y+13,num2str(IP),'color',cr,'FontWeight','bold');
case 7
text(XY_x-15,XY_y-13,num2str(IP),'color',cr,'FontWeight','bold');
case 8
text(XY_x+5,XY_y+13,num2str(IP),'color',cr,'FontWeight','bold');
otherwise
disp('there exists an error');
end
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?