% plot(step1.time,step1.signals.values,'r','LineWidth',1);
% plot(test.time,test.signals.values,'.-k','LineWidth',1);
% plot(FuzzyPid.time,FuzzyPid.signals.values,'b','LineWidth',1);
% plot(GaPid.time,GaPid.signals.values,'g','LineWidth',1);
% plot(Pid.time,Pid.signals.values,'m','LineWidth',1);
% set(gca,'FontSize',30);%设置坐标轴
% xlabel('Time/s','FontSize',30,'FontName','Times Rew Roman');
% ylabel('F/N','FontSize',30,'FontName','Times Rew Roman');
% legend('STEP','Ga Fuzzy PID','Fuzzy PID','Ga PID','PID','FontSize',20,'FontName','Times Rew Roman','Location','NorthEast');
%legend('boxoff') %取消图例边框
% axes('Position',[0.5,0.2,0.25,0.35]);
% plot(step1.time,step1.signals.values,'r','LineWidth',1);
% plot(test.time,test.signals.values,'.-k','LineWidth',1);
% plot(FuzzyPid.time,FuzzyPid.signals.values,'b','LineWidth',1);
% plot(GaPid.time,GaPid.signals.values,'g','LineWidth',1);
% plot(Pid.time,Pid.signals.values,'m','LineWidth',1);
% set(gca,'FontSize',20);%设置坐标轴
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
load('FuzzyPidstep2.mat');
set(gcf, 'Position', [200 100 1000 600]);
plot(step2.time,step2.signals.values,'r','LineWidth',1);
plot(teststep2.time,teststep2.signals.values,'.-k','LineWidth',1);
plot(FuzzyPidstep2.time,FuzzyPidstep2.signals.values,'b','LineWidth',1);
plot(GaPidstep2.time,GaPidstep2.signals.values,'g','LineWidth',1);
plot(Pidstep2.time,Pidstep2.signals.values,'m','LineWidth',1);
set(gca,'FontSize',25);%设置坐标轴
set(gca,'linewidth',1);%坐标轴加粗
xlabel('Time/s','FontSize',25,'FontName','Times Rew Roman');
ylabel('F/N','FontSize',25,'FontName','Times Rew Roman');
legend('Expected Force','Ga Fuzzy PID','Fuzzy PID','Ga PID','PID','FontSize',15,'FontName','Times Rew Roman','Location','NorthWest');
ax1 = axes('Position',get(gca,'Position'),'XAxisLocation','top','YAxisLocation','right','Color','none','XColor','k','YColor','k'); % 设置坐标区
set(ax1,'XTick', [],'YTick', []); % 去掉xy轴刻度
set(ax1, 'LineWidth', 1);%加粗线条
axes('Position',[0.7,0.6,0.20,0.31]);
plot(step2.time,step2.signals.values,'r','LineWidth',1.75);
plot(teststep2.time,teststep2.signals.values,'.-k','LineWidth',1);
plot(FuzzyPidstep2.time,FuzzyPidstep2.signals.values,'b','LineWidth',1);
plot(GaPidstep2.time,GaPidstep2.signals.values,'g','LineWidth',1);
plot(Pidstep2.time,Pidstep2.signals.values,'m','LineWidth',1);
set(gca,'FontSize',15);%设置坐标轴
set(gca,'linewidth',1);%坐标轴加粗
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% % load('teststep2.mat');
% set(gcf, 'Position', [200 100 1000 600]);
% plot(sin.time,sin.signals.values,'r','LineWidth',1.75);
% plot(testsin.time,testsin.signals.values,'x-k','LineWidth',1);
% plot(fuzzysin.time,fuzzysin.signals.values,'.--b','LineWidth',1);
% plot(gasin.time,gasin.signals.values,'g','LineWidth',1);
% plot(pidsin.time,pidsin.signals.values,'m','LineWidth',1);
% set(gca,'FontSize',25);%设置坐标轴
% set(gca,'linewidth',1);%坐标轴加粗
% xlabel('Time/s','FontSize',25,'FontName','Times Rew Roman');
% ylabel('F/N','FontSize',25,'FontName','Times Rew Roman');
% legend('Expected Force','Ga Fuzzy PID','Fuzzy PID','Ga PID','PID','FontSize',15,'FontName','Times Rew Roman','Location','NorthEast');
% legend('boxoff') %取消图例边框
% ax1 = axes('Position',get(gca,'Position'),'XAxisLocation','top','YAxisLocation','right','Color','none','XColor','k','YColor','k'); % 设置坐标区
% set(ax1,'XTick', [],'YTick', []); % 去掉xy轴刻度
% set(ax1, 'LineWidth', 1);%加粗线条
% axes('Position',[0.25,0.72,0.2,0.2]);
% plot(sin.time,sin.signals.values,'r','LineWidth',1.75);
% plot(testsin.time,testsin.signals.values,'.-k','LineWidth',1);
% plot(fuzzysin.time,fuzzysin.signals.values,'.-b','LineWidth',1);
% plot(gasin.time,gasin.signals.values,'g','LineWidth',1);
% plot(pidsin.time,pidsin.signals.values,'m','LineWidth',1);
% set(gca,'FontSize',10);%设置坐标轴
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %柱状图Y=[426.3075,0.2047,51.5646];
% Y=[426.3075,5,51.5646];
% set(gcf, 'Position', [200 100 1000 600]);
% set(gca,'FontSize',20);%设置坐标轴
% set(gca,'YLim',[0 500]);
% xlabel('Number of variables(3)','FontSize',25,'FontName','Times Rew Roman');
% ylabel('Current Best individual','FontSize',25,'FontName','Times Rew Roman');
% set(gca,'linewidth',1);%坐标轴加粗
% ax1 = axes('Position',get(gca,'Position'),'XAxisLocation','top','YAxisLocation','right','Color','none','XColor','k','YColor','k'); % 设置坐标区
% set(ax1,'XTick', [],'YTick', []); % 去掉xy轴刻度
% set(ax1, 'LineWidth', 1);%加粗线条