clc;
clf;
clear;
% heatmap of wi-fi signals in K305


subplot (2,3,1);
%eduroam channel 4
%B6 = 4/5*49 + 58*1/5 = 50.8
A = [44 30 39;
     51 59 54;
     52 22 54;
     52 54 54;
     35 31 52;
     59 38 58;
     30 48 35;
     30 48 54;
     52 58 47];
colormap('hot');
imagesc (A);
colorbar('SouthOutside');
%colorbar('YTickLabel',...
 %   {'Fine','Strong','Good','Fair','Low','Weak'});
title ('RSSI of BS1 in K305');
caxis ([10 80]);
xlabel ('column');
set(gca,'XTick',[1 2 3]);
ylabel ('row');


subplot (2,3,2);
%AP2 = eduroam channel 13
B = [12 29 39;
     45 53 36;
     44 30 35;
     40 39 48;
     30 36 30;
     36 40 39;
     39 31 33;
     22 33 22;
     22 32 33];
colormap('hot');
imagesc (B);
colorbar('SouthOutside');
title ('RSSI of BS2 in K305');
caxis ([10 80]);
xlabel ('column');
set(gca,'XTick',[1 2 3]);
ylabel ('row');


subplot (2,3,3);
%AP3 = eduroam channel 10
C = [53 34 52;
     57 55 58;
     29 29 52;
     43 55 30;
     52 52 50;
     67 56 39;
     58 53 38;
     57 55 58;
     70 60 58];
colormap('hot');
imagesc (C);
colorbar('SouthOutside');
title ('RSSI of BS3 in K305');
caxis ([10 80]);
xlabel ('column');
set(gca,'XTick',[1 2 3]);
ylabel ('row');



subplot (2,3,4);
%eduroam channel 4
%B6 = 4/5*49 + 58*1/5 = 50.8
A1 = [29 53 45;
      36 36 30;
      57 35 44;
      56 39 60;
      43 57 39];
colormap('hot');
imagesc (A1);
colorbar('SouthOutside');
%colorbar('YTickLabel',...
 %   {'Fine','Strong','Good','Fair','Low','Weak'});
title ('RSSI of BS1 in K404');
caxis ([10 80]);
xlabel ('column');
set(gca,'XTick',[1 2 3]);
ylabel ('row');


subplot (2,3,5);
%AP2 = eduroam channel 13
B1 = [33 44 44;
      51 34 29;
      34 40 37;
      57 30 54;
      43 56 37];
colormap('hot');
imagesc (B1);
colorbar('SouthOutside');
title ('RSSI of BS2 in K404');
caxis ([10 80]);
xlabel ('column');
set(gca,'XTick',[1 2 3]);
ylabel ('row');


subplot (2,3,6);
%AP3 = eduroam channel 10
C1 = [40 58 55;
      35 39 52;
      46 37 57;
      64 37 36;
      57 40 59];
colormap('hot');
imagesc (C1);
colorbar('SouthOutside');
title ('RSSI of BS3 in K404');
caxis ([10 80]);
xlabel ('column');
set(gca,'XTick',[1 2 3]);
ylabel ('row');





% heatmap of wi-fi signals in K404
figure

subplot (2,3,1);
%AP4 = BagR channel 12
D = [29 18 24;
     30 30 30;
     33 30 33;
     51 38 53;
     30 30 30;
     54 36 54;
     54 54 45;
     49 31 38;
     29 44 28];
colormap('hot');
imagesc (D);
colorbar('SouthOutside');
title ('RSSI of BS4 in K305');
caxis ([10 80]);
xlabel ('column');
set(gca,'XTick',[1 2 3]);
ylabel ('row');


subplot (2,3,2);
%AP5 = julka channel 13
E = [35 26 39;
     52 51 38;
     38 33 27;
     40 52 54;
     37 36 38;
     47 52 51;
     52 53 30;
     37 35 26;
     30 54 28];
colormap('hot');
imagesc (E);
colorbar('SouthOutside');
title ('RSSI of BS5 in K305');
caxis ([10 80]);
xlabel ('column');
set(gca,'XTick',[1 2 3]);
ylabel ('row');


subplot (2,3,3);
%AP5 = elissei.com channel 12
F = [30 30 36;
     32 31 24;
     37 38 24;
     51 44 38;
     39 30 30;
     30 40 54;
     41 47 22;
     24 38 39;
     28 37 24];
colormap('hot');
imagesc (F);
colorbar('SouthOutside');
title ('RSSI of BS6 in K305');
caxis ([10 80]);
xlabel ('column');
set(gca,'XTick',[1 2 3]);
ylabel ('row');



subplot (2,3,4);
%AP4 = BagR channel 12
D1 = [29 21 11;
      30 24 27;
      50 28 30;
      49 31 29;
      39 30 36];
colormap('hot');
imagesc (D1);
colorbar('SouthOutside');
title ('RSSI of BS4 in K404');
caxis ([10 80]);
xlabel ('column');
set(gca,'XTick',[1 2 3]);
ylabel ('row');


subplot (2,3,5);
%AP5 = julka channel 13
E1 = [47 53 39;
      53 38 36;
      50 39 39;
      44 38 49;
      52 36 51];
colormap('hot');
imagesc (E1);
colorbar('SouthOutside');
title ('RSSI of BS5 in K404');
caxis ([10 80]);
xlabel ('column');
set(gca,'XTick',[1 2 3]);
ylabel ('row');


subplot (2,3,6);
%AP5 = elissei.com channel 12
F1 = [33 26 39;
      28 39 38;
      38 35 30;
      40 31 51;
      52 44 42];
colormap('hot');
imagesc (F1);
colorbar('SouthOutside');
title ('RSSI of BS6 in K404');
caxis ([10 80]);
xlabel ('column');
set(gca,'XTick',[1 2 3]);
ylabel ('row');


figure

subplot (1,2,1);
%AP5 = K401 channel 6
G = [49 29 39;
     47 18 37;
     37 31 34;
     43 37 29;
     35 37 34;
     39 39 45;
     38 45 43;
     34 29 38;
     30 32 30];
colormap('hot');
imagesc (G);
colorbar('SouthOutside');
title ('RSSI of BS7 in K305');
caxis ([10 80]);
xlabel ('column');
set(gca,'XTick',[1 2 3]);
ylabel ('row');


subplot (1,2,2);
%AP5 = K401 channel 6
G1 = [28 25 43;
      33 37 28;
      37 39 51;
      26 29 51;
      53 39 34];
colormap('hot');
imagesc (G1);
colorbar('SouthOutside');
title ('RSSI of BS7 in K404');
caxis ([10 80]);
xlabel ('column');
set(gca,'XTick',[1 2 3]);
ylabel ('row');


W = [A B C D E F G]