setup.m

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

M
28
字号
function a = setup(a)global Exc Svc Cacif isempty(a.con), return, enda.n = length(a.con(:,1));a.exc = find(a.con(:,3) == 1);a.svc = find(a.con(:,3) == 2);a.syn = Exc.syn(a.con(a.exc,2));if length(a.con(1,:)) < a.ncol  a.u = ones(a.n,1);else  a.u = a.con(:,a.ncol);end% the cluster controller is inactive % if the Central Area Controller, % the AVR, or the SVC is off-linea.u = a.u.*Cac.u(a.con(:,1));a.u(a.exc) = a.u(a.exc).*Exc.u(a.con(a.exc,2));a.u(a.svc) = a.u(a.svc).*Svc.u(a.con(a.svc,2));a.store = a.con;

⌨️ 快捷键说明

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