📄 histsave.asv
字号:
clear;
clc;
histPlot=zeros(1,2001);
iCount=0;
resultGood = 100000;
for i=1:2
Result = PSO();
legth = length(Result)
if (resultGood > Result(legth))
resultGood =Result(legth);
end
%if (Result(legth)<5)
iCount= iCount+1;
histPlot = histPlot+Result;
%end
end
histPlot = histPlot./iCount;
legth = length(histPlot)
plot(1:legth,histPlot(1:legth));
axis([0 legth-1 0 600]);
resultGood
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -