function tisk_reakce(t,V,i)
% t je cas, C je struktura teles, i je cislo telesa
if( i <= length(V))
    switch V{i}.typ
        case 1
            figure('name', ['rotacni vazba ', num2str(i)], 'color', 'w');
            hold on;
            plot(t,V{i}.R);
            str_T1 = num2str(V{i}.T1);
            str_T2 = num2str(V{i}.T2);
            legend(['R_{x',str_T1,str_T2,'}'],['R_{y',str_T1,str_T2,'}'],['M_{',str_T1,str_T2,'}'],['R_{x',str_T2,str_T1,'}'],['R_{y',str_T2,str_T1,'}'],['M_{',str_T2,str_T1,'}']);
            xlabel('t [s]');
            ylabel('F [N]');
            title(['Reakcni sily ve vazbe ', num2str(i)])
            box on;
            grid on;
            
         case 2
            figure('name', ['posuvna vazba ', num2str(i)], 'color', 'w');
            hold on;
            plot(t,V{i}.R);
            str_T1 = num2str(V{i}.T1);
            str_T2 = num2str(V{i}.T2);
            legend(['R_{x',str_T1,str_T2,'}'],['R_{y',str_T1,str_T2,'}'],['M_{',str_T1,str_T2,'}'],['R_{x',str_T2,str_T1,'}'],['R_{y',str_T2,str_T1,'}'],['M_{',str_T2,str_T1,'}']);
            xlabel('t [s]');
            ylabel('F [N]');
            title(['Reakcni sily ve vazbe ', num2str(i)])
            box on;
            grid on;
    end
else
    display(['Chybne zadane cislo reakce ',num2str(i)]);
end