📄 gycall.m
字号:
function Gycall(a)if ~a.n, return, endglobal DAE SettingsV = DAE.y(a.vbus);if Settings.init DAE.Gy = DAE.Gy + sparse(a.bus,a.vbus,DAE.lambda*a.u.*(2*a.con(:,5).*V + ... a.con(:,6)),DAE.m,DAE.m); DAE.Gy = DAE.Gy + sparse(a.vbus,a.vbus,DAE.lambda*a.u.*(2*a.con(:,8).*V + ... a.con(:,9)),DAE.m,DAE.m);elseif ~isempty(a.init) i = a.init; DAE.Gy = DAE.Gy + sparse( ... a.bus(i),a.vbus(i), ... DAE.lambda*a.u(i).*(2*a.con(i,5).*V(i)+a.con(i,6)),DAE.m,DAE.m); DAE.Gy = DAE.Gy + sparse( ... a.vbus(i),a.vbus(i), ... DAE.lambda*a.u(i).*(2*a.con(i,8).*V(i)+a.con(i,9)),DAE.m,DAE.m);end
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -