www.pudn.com > PSAT.zip > remove.m, change:2007-11-17,size:206b


function a = remove(a,idx)

if ~a.n, return, end
if isempty(idx), return, end

a.con(idx,:) = [];
a.bus(idx) = [];
a.dat(idx) = [];
a.n = a.n - length(idx);
a.x(idx,:) = [];
a.w(idx,:) = [];
a.u(idx) = [];