
clear all
close all
  disp('Cats, Exercise 2.21')
  lw = 3; 
  set(0, 'DefaultAxesFontSize', 16);
  fs = 17;
  msize = 20;

% load cats
 load 'C:\BESTAT\Descriptive\Descriptivedat\cats.mat'

Natstance = cat.stancedur(cat.cat==1);
Rigstance = cat.stancedur(cat.cat==2);
Korstance = cat.stancedur(cat.cat==3);
Stancedurs = [Natstance(1:35) Rigstance(1:35) Korstance(1:35)];
labels = {'Natasha', 'Riga', 'Korina'};

figure(1)
imagesc(Stancedurs)
figure(2)
boxplot(Stancedurs, 'labels', labels)
title('Stances by different cats')

figure(3)
pie3(var(Stancedurs),labels) %pie3
colormap 'summer'

figure(4)
subplot(1,3,1)
bihist(Natstance(1:35), Rigstance(1:35), 10)
subplot(1,3,2)
bihist(Natstance(1:35), Korstance(1:35), 10)
subplot(1,3,3)
bihist(Rigstance(1:35),Korstance(1:35) , 10)





