%%%%I Regulace
rI=[0.25,0.5,1,2]
sim('Iregulace')
subplot(2,1,1)
plot(tout,u,'LineWidth',2);  XLABEL('\vartheta [-]','FontSize',12,'FontWeight', 'bold' ); YLABEL('u [-]','FontSize',12,'FontWeight', 'bold');
grid on
cgf=legend(strcat('rI=',num2str(rI(:,1))),...
strcat('rI=',num2str(rI(:,2))),...
strcat('rI=',num2str(rI(:,3))),...
strcat('rI=',num2str(rI(:,4))),-1);
set(cgf,'FontWeight', 'bold')

subplot(2,1,2)
plot(tout,y,'LineWidth',2);  XLABEL('\vartheta [-]','FontSize',12,'FontWeight', 'bold' ); YLABEL('y [-]','FontSize',12,'FontWeight', 'bold');grid on
cgf=legend(strcat('rI=',num2str(rI(:,1))),...
strcat('rI=',num2str(rI(:,2))),...
strcat('rI=',num2str(rI(:,3))),...
strcat('rI=',num2str(rI(:,4))),-1);
set(cgf,'FontWeight', 'bold')
