% 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 = [-15 -29 -38 -36 -43 -40 -43 -49 -47 -53 -56 -54 -55 -58 -59];
amodes = [-12 -24 -28 -31 -34 -36 -39 -45 -46 -54 -49 -61 -59 -54 -55];
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 -27 -32 -36 -40 -45 -44 -50 -56 -56 -61 -60 -61 -61 -61];
amodes = [-25 -33 -37 -38 -42 -44 -45 -51 -52 -60 -55 -64 -70 -68 -71];
plot(logdvector, gmodes, '-+r', 'MarkerSize', 5);
plot(logdvector, amodes, '-xr', 'MarkerSize', 5);

% ZD1211-A CARD DATA
gmodes = [-22 -31 -38 -48 -57 -48 -42 -53 -56 -59 -66 -66 -62 -68 -69];
plot(logdvector, gmodes, '-+g', 'MarkerSize', 5);

% ZD1211-B CARD DATA
gmodes = [-26 -31 -38 -54 -58 -48 -42 -50 -57 -58 -68 -66 -65 -68 -67];
plot(logdvector, gmodes, '-vg', 'MarkerSize', 5);

% ZD1211-C CARD DATA
gmodes = [-22 -29 -32 -38 -40 -56 -44 -54 -57 -56 -71 -62 -65 -65 -78];
plot(logdvector, gmodes, '-^g', 'MarkerSize', 5);

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

% NETGEAR WG-111V2 CARD B DATA
gmodes = [-45 -47 -48 -50 -49 -52 -51 -54 -54 -54 -55 -57 -57 -55 -57];
plot(logdvector, gmodes, '-vb', 'MarkerSize', 5);

% D-LINK DWA-140 DATA
gmodes = [-19 -29 -33 -41 -43 -41 -41 -51 -47 -51 -60 -56 -56 -58 -60];
plot(logdvector, gmodes, '-+c', 'MarkerSize', 5);

% NETGEAR WPN111 DATA
gmodes = [-89 -86 -55 -88 -89 -80 -78 -81 -77 -81 -82 -75 -84 -86 -87];
plot(logdvector, gmodes, '-+m', 'MarkerSize', 5);

% Diamond Digital A101-A
gmodes = [-28 -36 -29 -37 -35 -37 -39 -43 -49 -55 -55 -58 -58 -60 -61];
plot(logdvector, gmodes, '-oc', 'MarkerSize', 5);

% Diamond Digital A101-B
gmodes = [-23 -25 -29 -36 -35 -37 -39 -46 -49 -58 -58 -56 -56 -60 -63];
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 = [-16 -28 -36 -48 -50 -48 -42 -48 -50 -50 -70 -58 -58 -60 -60];
plot(logdvector, gmodes, '-ok', 'MarkerSize', 5);

% Asus EeePC 701 Atheros 5006UG
gmodes = [-32 -30 -33 -34 -38 -39 -47 -53 -46 -55 -57 -61 -61 -62 -60];
plot(logdvector, gmodes, '-*k', 'MarkerSize', 5);

% Broadcom BCM4312 in MSI Wind U100
gmodes = [-18 -24 -39 -41 -45 -46 -50 -50 -54 -52 -59 -55 -55 -57 -58];
amodes = [-32 -37 -41 -43 -47 -48 -51 -58 -63 -62 -66 -68 -78 -75 -71];
plot(logdvector, gmodes, '-dg', 'MarkerSize', 5);
plot(logdvector, amodes, '-sg', 'MarkerSize', 5);

% Intel Centrino Wireless 2200BG in HP Pavillion dv4000
gmodes = [-54 -55 -27 -29 -33 -36 -39 -43 -50 -45 -59 -52 -51 -51 -50];
plot(logdvector, gmodes, '-pr', 'MarkerSize', 5);

% Intel Centrino Wireless 3945ABG in BenQ R55UV10
gmodes = [-26 -27 -36 -38 -39 -51 -47 -56 -58 -61 -65 -61 -63 -65 -63];
amodes = [-40 -48 -51 -49 -51 -53 -61 -61 -61 -63 -72 -68 -73 -82 -75];
plot(logdvector, gmodes, '-dm', 'MarkerSize', 5);
plot(logdvector, amodes, '-sm', 'MarkerSize', 5);

% Intel Wi-Fi Link 5300 in HP Elitebook
gmodes = [-13 -16 -19 -22 -25 -30 -32 -38 -42 -41 -61 -51 -50 -53 -57];
amodes = [-33 -34 -39 -40 -42 -48 -44 -53 -57 -57 -65 -57 -65 -74 -64];
plot(logdvector, gmodes, '-db', 'MarkerSize', 5);
plot(logdvector, amodes, '-sb', 'MarkerSize', 5);

% HTC Android Phone
gmodes = [-29 -34 -38 -40 -44 -49 -45 -55 -56 -67 -61 -61 -62 -63 -65];
plot(logdvector, gmodes, '-pg', 'MarkerSize', 5);

% Nokia N95
gmodes = [-29 -36 -47 -40 -39 -43 -49 -49 -54 -63 -57 -57 -58 -61 -63];
plot(logdvector, gmodes, '-pb', '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');