⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 remove.m

📁 这是一个很适合研究和学习用的电力系统仿真软件
💻 M
字号:
function a = remove(a,idx)

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

for i = 1:length(idx)
  jdx = find(a.ty1 == idx(i));
  if jdx
    a.ty1(jdx) = [];
    a.bcv(jdx,:) = [];
  end
  jdx = find(a.ty2 == idx(i));
  if jdx
    a.ty2(jdx) = []; 
    a.alpha(jdx,:) = [];
    a.vm(jdx,:) = [];
  end  
  jdx = find(a.pod == idx(i));
  if jdx, a.pod(jdx) = []; end
  jdx = find(a.cluster == idx(i));
  if jdx, a.cluster(jdx) = []; end  
end

a.con(idx,:) = [];
a.bus(idx) = [];
a.n = a.n - length(idx);
a.Be(idx,:) = [];
a.Vref(idx,:) = [];

⌨️ 快捷键说明

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