% Setup Log Distance Vector
dvector = [0.3 0.5 0.8 1 1.5 2 2.5 5 7.5 10 15 20 25 30 35];
logdvector = log10(dvector);

% BELKIN PLAY USB CARD DATA - 2.4GHZ FIRST, 5GHZ AFTER
gmodes = [-24 -31 -34 -36 -39 -37 -46 -43 -44 -51 -46 -53 -52 -51 -52];
amodes = [-12 -24 -28 -30 -33 -36 -38 -41 -47 -46 -44 -54 -44 -48 -59];
plot(logdvector, gmodes, '-+y', 'MarkerSize', 5);
hold on;
plot(logdvector, amodes, '-xy', 'MarkerSize', 5);
xlabel('Log10(Distance)');
ylabel('Recorded RSSI (dBm)');
title('Mode RSSI Reading vs Log10 Distance for All Tested Cards');

% NETGEAR SUPERAG CARD DATA - 2.4GHZ FIRST, 5GHZ AFTER
gmodes = [-13 -26 -31 -37 -36 -43 -42 -56 -58 -60 -59 -65 -55 -74 -55];
amodes = [-25 -33 -38 -36 -40 -41 -46 -51 -50 -55 -56 -67 -54 -57 -67];
plot(logdvector, gmodes, '-+r', 'MarkerSize', 5);
plot(logdvector, amodes, '-xr', 'MarkerSize', 5);

% ZD1211-A CARD DATA
gmodes = [-24 -38 -38 -38 -46 -50 -43 -45 -50 -59 -54 -65 -54 -56 -53];
plot(logdvector, gmodes, '-+g', 'MarkerSize', 5);

% ZD1211-B CARD DATA
gmodes = [-26 -38 -38 -38 -54 -48 -46 -46 -50 -65 -55 -67 -57 -60 -55];
plot(logdvector, gmodes, '-vg', 'MarkerSize', 5);

% ZD1211-C CARD DATA
gmodes = [-26 -38 -38 -38 -49 -47 -44 -46 -51 -63 -54 -62 -54 -56 -52];
plot(logdvector, gmodes, '-^g', 'MarkerSize', 5);

% NETGEAR WG-111V2-A DATA
gmodes = [-45 -45 -46 -49 -49 -52 -49 -51 -52 -54 -54 -54 -52 -54 -53];
plot(logdvector, gmodes, '-+b', 'MarkerSize', 5);

% NETGEAR WG-111V2 CARD B DATA
gmodes = [-45 -45 -45 -45 -46 -48 -47 -48 -52 -53 -56 -53 -52 -54 -52];
plot(logdvector, gmodes, '-vb', 'MarkerSize', 5);

% D-LINK DWA-140 DATA
gmodes = [-23 -31 -35 -33 -41 -41 -45 -45 -51 -51 -54 -58 -49 -54 -54];
plot(logdvector, gmodes, '-+c', 'MarkerSize', 5);

% NETGEAR WPN111 DATA
gmodes = [-81 -61 -31 -79 -77 -79 -40 -44 -66 -67 -58 -49 -40 -50 -61];
plot(logdvector, gmodes, '-+m', 'MarkerSize', 5);

% Diamond Digital A101-A
gmodes = [-31 -34 -31 -36 -36 -41 -44 -46 -47 -46 -47 -65 -56 -60 -60];
plot(logdvector, gmodes, '-oc', 'MarkerSize', 5);

% Diamond Digital A101-B
gmodes = [-26 -30 -28 -34 -34 -46 -46 -41 -48 -46 -45 -65 -49 -59 -56];
plot(logdvector, gmodes, '-*c', 'MarkerSize', 5);

% Netgear MA101
gmodes = [-24 -24 -24 -24 -24 -24 -24 -24 -24 -24 -24 -24 -24 -24 -24];
plot(logdvector, gmodes, '-om', 'MarkerSize', 5);

% Dlink DWL-122G
gmodes = [-24 -30 -36 -34 -48 -62 -42 -50 -50 -52 -52 -52 -50 -50 -52];
plot(logdvector, gmodes, '-ok', 'MarkerSize', 5);

% Asus EeePC 701 Atheros 5006UG
gmodes = [-25 -27 -32 -36 -36 -43 -39 -38 -44 -57 -58 -59 -53 -60 -52];
plot(logdvector, gmodes, '-*k', 'MarkerSize', 5);

% Broadcom BCM4312 in MSI Wind U100
gmodes = [-20 -26 -34 -40 -42 -42 -41 -52 -43 -51 -52 -52 -54 -52 -51];
amodes = [-33 -41 -43 -44 -47 -50 -50 -63 -63 -63 -56 -71 -62 -62 -69];
plot(logdvector, gmodes, '-dg', 'MarkerSize', 5);
plot(logdvector, amodes, '-sg', 'MarkerSize', 5);

% Intel Centrino Wireless 2200BG in HP Pavillion dv4000
gmodes = [-21 -24 -27 -27 -27 -31 -35 -37 -46 -42 -46 -48 -42 -43 -40];
plot(logdvector, gmodes, '-pr', 'MarkerSize', 5);

% Intel Centrino Wireless 3945ABG in BenQ R55UV10
gmodes = [-24 -29 -34 -36 -40 -45 -44 -64 -66 -63 -63 -61 -61 -63 -54];
amodes = [-44 -37 -49 -50 -51 -53 -56 -55 -58 -64 -57 -61 -70 -67 -67];
plot(logdvector, gmodes, '-dm', 'MarkerSize', 5);
plot(logdvector, amodes, '-sm', 'MarkerSize', 5);

% Intel Wi-Fi Link 5300 in HP Elitebook
gmodes = [-13 -16 -22 -22 -27 -33 -38 -35 -41 -39 -49 -53 -42 -42 -38];
amodes = [-33 -37 -33 -34 -44 -45 -47 -54 -48 -50 -51 -62 -63 -60 -56];
plot(logdvector, gmodes, '-db', 'MarkerSize', 5);
plot(logdvector, amodes, '-sb', 'MarkerSize', 5);

% HTC Android Phone
gmodes = [-26 -31 -35 -39 -43 -51 -46 -55 -52 -54 -57 -68 -60 -63 -60];
plot(logdvector, gmodes, '-pg', 'MarkerSize', 5);

% Nokia N95
gmodes = [-25 -34 -38 -38 -38 -39 -48 -45 -48 -52 -47 -56 -49 -53 -49];
plot(logdvector, gmodes, '-pb', 'MarkerSize', 5);

% Roving Networks Wi-Fi Tag
gmodes = [-34 -45 -46 -43 -47 -43 -49 -52 -52 -52 -58 -60 -58 -57 -60];
plot(logdvector, gmodes, '-pm', 'MarkerSize', 5);

% Finally, add Legend
legend('Belkin Play 2.4Ghz', 'Belkin Play 5.0Ghz', 'Netgear WG-111U 2.4Ghz', 'Netgear WG-111U 5.0Ghz', 'Billion BiPAC3011G Card A', 'Billion BiPAC3011G Card B', 'Billion BiPAC3011G Card C', 'Netgear WG-111v2 Card A', 'Netgear WG-111v2 Card B', 'D-Link DWA-140', 'Netgear WPN111', 'Diamond Digital A101 Card A', 'Diamond Digital A101 Card B', 'Netgear MA101', 'D-Link DWL-122G', 'Atheros 5006UG in Asus EeePC701', 'Broadcom BCM4312 in MSI Wind U100 - 2.4Ghz', 'Broadcom BCM4312 in MSI Wind U100 - 5.0Ghz', 'Intel Centrino Wireless 2200BG in HP Pavillion dv4000', 'Intel Centrino Wireless 3945ABG in BenQ R55UV10 - 2.4Ghz', 'Intel Centrino Wireless 3945ABG in BenQ R55UV10 - 5.0Ghz', 'Intel Wi-Fi Link 5300 in HP Elitebook - 2.4Ghz', 'Intel Wi-Fi Link 5300 in HP Elitebook - 5.0Ghz', 'HTC Android Phone', 'Nokia N95', 'Roving Networks Wi-Fi Tag');