move_ind.m.svn-base

来自「Incrementally/decrementally update svm. 」· SVN-BASE 代码 · 共 23 行

SVN-BASE
23
字号
% MOVE_IND - Removes the indices indc from the indices inda
%            and appends them to end of the indices indb.
%            The relative order of the remaining indices in 
%            inda is preserved.  
%
% Syntax: [inda,indb] = move_ind(inda,indb,indc)
%
% Version 3.22e -- Comments to diehl@alumni.cmu.edu
%

function [inda,indb] = move_ind(inda,indb,indc)

if (~isempty(indc))
   indb = [indb indc];
   new_inds = [];
   for i = 1:length(inda)
      if (~any(inda(i) == indc))
         new_inds = [new_inds inda(i)];
      end;
   end;
   inda = new_inds;
end;

⌨️ 快捷键说明

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