simrep.m

来自「用于电力系统的一个很好的分析软件」· M 代码 · 共 15 行

M
15
字号
function simrep(a, blocks, masks, lines)

global DAE

if ~a.n, return, end

typeidx = find(strcmp(masks,'Exc'));

for h = 1:length(typeidx)
  line_out = find_system(lines,'SrcBlockHandle',blocks(typeidx(h)));
  v_out = ['Vf = ',fvar(DAE.y(a.vfd(h)),7),' p.u.'];
  set_param(line_out,'Name',v_out);
end

⌨️ 快捷键说明

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