%%%%P Regulator
r0=[1,5,10] %r0=0... pøechodová charakteristika modelu soustavy
sim('Pregulace')
subplot(2,1,1)
plot(tout,u,'LineWidth',2);  
XLABEL('\vartheta [-]','FontSize',12,'FontWeight', 'bold' ); 
YLABEL('u [-]','FontSize',12,'FontWeight', 'bold');
cgf=legend(strcat('r_0=',num2str(r0(:,1))),...
    strcat('r_0=',num2str(r0(:,2))),...
    strcat('r_0=',num2str(r0(:,3))),-1);
grid on
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');
legend(strcat('r_0=',num2str(r0(:,1))),...
    strcat('r_0=',num2str(r0(:,2))),...
    strcat('r_0=',num2str(r0(:,3))),-1);
grid on

