📄 test1.asv
字号:
% clc
% for i=1:3
% for j=1:3
% Rd1=rand(i,j);
% Z=zeros(i,j);
% Z(:,:)=Rd1(:,:);
% end
% end
% for i=1:3
% for j=1:3
% Y=zeros(i,j)
% end
% end
% S=[Z,Y]
% Rd1
% Z
% Y
% S
% for i=1:3
% for j=1:3
% Rd1=rand(i,j);
% end
% end
% if Rd1(1,1)<Rd1(1,2)
% Rbest=Rd1(1,1);
% else Rd1(1,2);
% end
% Rd1
% Rbest
clc
clear all
%baseMVA=100
int=50;
nrlfppg
%nbus=14;
for i= 1:int
for j= 1:nbus
popu(i,j)=floor(rand(1)*28)*150;
end
end
popu=popu'
z=zeros(5,50)
rb=randperm(size(popu,1));
sd=randperm(size(popu,2));
for nb=1:5
z(nb,sd(nb))=popu(rb, %row selected by the command
% discard the row of popu selected by the above command and keep the rest rows
end
end
% for jk= 1:50
% pp= sum(z(:,jk));
% if pp>4050
%
%
for i= 1:int
Qin=(popu(:,i)./(1000))
newton
% a(i)=t;
% b(i)=sum;
end
% a
% b
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -