Advertisement
Guest User

Untitled

a guest
Jun 19th, 2019
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MatLab 1.17 KB | None | 0 0
  1. y = zeros(5,2);
  2.         for i = 2:1:6
  3.             y(i-1,1) = PChinGesamtMW(i);
  4.             y(i-1,2) = PPullGesamtMW(i);
  5.             z(i-1,1) = PChinGesamtSTD(i);
  6.             z(i-1,2) = PPullGesamtSTD(i);
  7.         end
  8. %         x = categorical({'Pectoralis','Bizeps','Trizeps', 'Trapezius', 'Latissimus'});
  9. %         x = reordercats(x,{'Pectoralis','Bizeps','Trizeps', 'Trapezius', 'Latissimus'});
  10.         figure
  11.         hold on
  12.         title('Mittlere Muskelaktivität der untersuchten Muskeln');
  13.         grid on
  14.         h = bar(y);
  15.         set(gca, 'XTickLabel', {'Pectoralis' ' ' 'Bizeps' ' ' 'Trizeps' ' ' 'Trapezius' ' ' 'Latissimus'});
  16.         ngroups = size(y, 1);
  17.         nbars = size(y, 2);
  18.         groupwidth = min(0.8, nbars/(nbars + 1.5));
  19.         for i = 1:nbars
  20.             x = (1:ngroups) - groupwidth/2 + (2*i-1) * groupwidth / (2*nbars);
  21.             errorbar(x, y(:,i), z(:,i), '.');
  22.         end
  23.         ylabel('Muskelaktivierung [%MVIC]');
  24.         l = cell(1,2);
  25.         l{1,1} = 'Chin-Up';
  26.         l{1,2} = 'Pull-Up';
  27.         k = legend(h,l);
  28.         rect = [0.2, 0.78 0.1 0.1];
  29.         set(k, 'Position', rect);
  30.         ylim([0 220]);
  31.         hold off
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement