mainprog.m
来自「状态估计原始程序,本程序可以进行状态估计的计算利用最小加权二乘法计算WLS」· M 代码 · 共 32 行
M
32 行
%this is the main state estimate program
clear all;
clc;
global nbus;
global nlines;
global nshunts;
global tolerance;
nbus=input('enter the number of buses.');
nlines=input('enter the number of lines.');
nshunts=input('enter the number of shunts.');
tolerance=input('enter the tolerance.');
disp('1:input data 2:run program\n');
choice=input('enter whether you want to enter data or run the program.\n');
if choice==1
nbus=input('enter the number of buses.');
nlines=input('enter the number of lines.');
nshunts=input('enter the number of shunts.');
tolerance=input('enter the tolerance.');
dataentry(choice,nbus,nlines,nshunts,tolerance);
%nbus=x(1);
%nlines=x(2);
%nshunts=x(3);
%tolerance=x(4);
end
if choice==2
programengine(choice,nbus,nlines,nshunts,tolerance);
end
%if choice==3
% viewoutput(choice);
%end
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?