Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- y = zeros(5,2);
- for i = 2:1:6
- y(i-1,1) = PChinGesamtMW(i);
- y(i-1,2) = PPullGesamtMW(i);
- z(i-1,1) = PChinGesamtSTD(i);
- z(i-1,2) = PPullGesamtSTD(i);
- end
- % x = categorical({'Pectoralis','Bizeps','Trizeps', 'Trapezius', 'Latissimus'});
- % x = reordercats(x,{'Pectoralis','Bizeps','Trizeps', 'Trapezius', 'Latissimus'});
- figure
- hold on
- title('Mittlere Muskelaktivität der untersuchten Muskeln');
- grid on
- h = bar(y);
- set(gca, 'XTickLabel', {'Pectoralis' ' ' 'Bizeps' ' ' 'Trizeps' ' ' 'Trapezius' ' ' 'Latissimus'});
- ngroups = size(y, 1);
- nbars = size(y, 2);
- groupwidth = min(0.8, nbars/(nbars + 1.5));
- for i = 1:nbars
- x = (1:ngroups) - groupwidth/2 + (2*i-1) * groupwidth / (2*nbars);
- errorbar(x, y(:,i), z(:,i), '.');
- end
- ylabel('Muskelaktivierung [%MVIC]');
- l = cell(1,2);
- l{1,1} = 'Chin-Up';
- l{1,2} = 'Pull-Up';
- k = legend(h,l);
- rect = [0.2, 0.78 0.1 0.1];
- set(k, 'Position', rect);
- ylim([0 220]);
- hold off
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement