%%%%D Regulace
rd=[1 3 5];
sim('Dregulace')
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('r_d=',num2str(rd(1))),...
    strcat('r_d=',num2str(rd(2))),...
    strcat('r_d=',num2str(rd(3))),-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('r_d=',num2str(rd(1))),...
    strcat('r_d=',num2str(rd(2))),...
    strcat('r_d=',num2str(rd(3))),-1);
set(cgf,'FontWeight', 'bold')

