Problem while executing a switch case thread

조회 수: 1 (최근 30일)
SRIHARSHA SUSARLA
SRIHARSHA SUSARLA 2014년 6월 20일
댓글: SRIHARSHA SUSARLA 2014년 6월 20일
I have been trying to execute the program below, it works fine for all switch-case conditions except for the case instance 'ALL'. I know pretty much its a small mistake but couldn't figure it out. Couldn't get the 3 plots as expected if i try ALL.
clear all;
clear all;
% Correlation : zero-STATIC ; low = LOW ; med = MEDIUM ; high = HIGH
% Fading profiles: static = STATIC ; eva5 = EVA5Hz ; epa5 = EPA5Hz ; eva70 = EVA70Hz ; etu70 = ETU70Hz ; etu300 = ETU300Hz
%---------------------------------------------------------------%
HTMFILE=fopen('Test report2.htm','a');
fprintf(HTMFILE,'<h2 ALIGN=CENTER>Comparitive charts for two builds</h2>\n');
fprintf(HTMFILE,'<h3>Common Test Parameters</h3>\n');
fprintf(HTMFILE,'<p>Operating Band[PCC] = OB3<br>\n');
fprintf(HTMFILE,'<p>Operating Band[SCC] = OB5<br>\n');
fprintf(HTMFILE,'<p>Transmi Scheme[PCC] = OLSMultiplex<br>\n');
fprintf(HTMFILE,'<p>Transmi Scheme[SCC] = OLSMultiplex<br>\n');
fprintf(HTMFILE,'<p>DUT = 7260_ES2_01<br>\n');
fprintf(HTMFILE,'<p>Build_Information = Two_builds_for_Test<br>\n');
[d1, d2, r1] = xlsread('test1.csv') ;
xlswrite('test1.xls',d1);
[d11, d22, r2] = xlsread('test2.csv') ;
xlswrite('test2.xls',d11);
total_snr1 = d1( : ,5);
total_tput1 = d1( : ,6);
total_bler1 = d1( : ,7);
total_snr2 = d11( : ,5);
total_tput2 = d11( : ,6);
total_bler2 = d11( : ,7);
%---------------------------------------------------------------%
corr = input('Specify Correlation: ','s');
fp = input('Specify Fading profile: ','s');
switch(corr)
case 'zero'
switch (fp)
case 'static'
%function staticzero
h=figure(1);
snr_1 = total_snr1(1:31);
tput_1 = total_tput1(1:31);
bler_1 = total_bler1(1:31);
snr_11 = total_snr2(1:31);
tput_11 = total_tput2(1:31);
bler_11 = total_bler2(1:31);
subplot(1,2,1);
plot(snr_1,tput_1,'b--*',snr_11,tput_11,'r--o');
title 'Static-ZERO-CORR-THROUGHPUT';
hold on;
grid on;
grid minor;
set(h,'Name','Static-ZERO-CORR-TPUT');
ylabel('Throughput (Kbps)');
xlabel('Geometry (db)');
axis auto;
hleg = legend('TESTBUILD-1','TESTBUILD-2');
set (hleg,'Location','Northwest');
subplot(1,2,2);
semilogy(snr_1,bler_1,'b--*',snr_11,bler_11,'r--o');
title 'Static-ZERO-CORR-BLER';
hold on;
grid on;
grid minor;
set(h,'Name','Static-ZERO-CORR-BLER');
xlabel('BLER');
ylabel('Geometry (db)');
axis auto;
hleg = legend('TESTBUILD-1','TESTBUILD-2');
set (hleg,'Location','Northeast');
print(h,'-dpng','Static-ZERO-CORR-PERFORMANCE');
fprintf(HTMFILE,'<h2 ALIGN=CENTER>Static-ZERO-CORR-PERFORMANCE</h2>\n');
fprintf(HTMFILE,'</p>\n');
fprintf(HTMFILE,'<IMG SRC=./Static-ZERO-CORR-PERFORMANCE.png><br>\n');
%close(h);
break;
end
break;
case 'low'
switch (fp)
case 'eva5'
%function eva5low
h=figure(2);
snr_2 = total_snr1(33:63);
tput_2 = total_tput1(33:63);
bler_2 = total_bler1(33:63);
snr_22 = total_snr2(33:63);
tput_22 = total_tput2(33:63);
bler_22 = total_bler2(33:63);
subplot(1,2,1);
plot(snr_2,tput_2,'b--*',snr_22,tput_22,'r--o');
title 'EVA5HZ-LOW-CORR-THROUGHPUT';
hold on;
grid on;
grid minor;
set(h,'Name','EVA5HZ-LOW-CORR-TPUT');
ylabel('Throughput (Kbps)');
xlabel('Geometry (db)');
axis auto;
hleg = legend('TESTBUILD-1','TESTBUILD-2');
set (hleg,'Location','Northwest');
subplot(1,2,2);
semilogy(snr_2,bler_2,'b--*',snr_22,bler_22,'r--o');
title 'EVA5HZ-LOW-CORR-BLER';
hold on;
grid on;
grid minor;
set(h,'Name','EVA5HZ-LOW-CORR-BLER');
ylabel('BLER');
xlabel('Geometry (db)');
axis auto;
hleg = legend('TESTBUILD-1','TESTBUILD-2');
set (hleg,'Location','Northeast');
print(h,'-dpng','EVA5HZ-LOW-CORR-PERFORMANCE');
fprintf(HTMFILE,'<h2 ALIGN=CENTER>EVA5HZ-LOW-CORR-PERFORMANCE</h2>\n');
fprintf(HTMFILE,'</p>\n');
fprintf(HTMFILE,'<IMG SRC=./EVA5HZ-LOW-CORR-PERFORMANCE.png><br>\n');
%close(h);
break;
case 'epa5'
%function epa5low
h=figure(5);
snr_5 = total_snr1(129:159);
tput_5 = total_tput1(129:159);
bler_5 = total_bler1(129:159);
snr_55 = total_snr2(129:159);
tput_55 = total_tput2(129:159);
bler_55 = total_bler2(129:159);
subplot(1,2,1);
plot(snr_5,tput_5,'b--*',snr_55,tput_55,'r--o');
title 'EPA5HZ-LOW-CORR-THROUGHPUT';
hold on;
grid on;
grid minor;
set(h,'Name','EPA5HZ-LOW-CORR-TPUT');
ylabel('Throughput (Kbps)');
xlabel('Geometry (db)');
axis auto;
hleg = legend('TESTBUILD-1','TESTBUILD-2');
set (hleg,'Location','Northwest');
subplot(1,2,2);
semilogy(snr_5,bler_5,'b--*',snr_55,bler_55,'r--o');
title 'EPA5HZ-LOW-CORR-BLER';
hold on;
grid on;
grid minor;
set(h,'Name','EPA5HZ-LOW-CORR-BLER');
ylabel('BLER');
xlabel('Geometry (db)');
axis auto;
hleg = legend('TESTBUILD-1','TESTBUILD-2');
set (hleg,'Location','Northeast');
print(h,'-dpng','EPA5HZ-LOW-CORR-PERFORMANCE');
fprintf(HTMFILE,'<h2 ALIGN=CENTER>EPA5HZ-LOW-CORR-PERFORMANCE</h2>\n');
fprintf(HTMFILE,'</p>\n');
fprintf(HTMFILE,'<IMG SRC=./EPA5HZ-LOW-CORR-PERFORMANCE.png><br>\n');
%close(h);
break;
case 'eva70'
%function eva70low
h=figure(8);
snr_8 = total_snr1(225:255);
tput_8 = total_tput1(225:255);
bler_8 = total_bler1(225:255);
snr_88 = total_snr2(225:255);
tput_88 = total_tput2(225:255);
bler_88 = total_bler2(225:255);
subplot(1,2,1);
plot(snr_8,tput_8,'b--*',snr_88,tput_88,'r--o');
title 'EVA70HZ-LOW-CORR-THROUGHPUT';
hold on;
grid on;
grid minor;
set(h,'Name','EVA70HZ-LOW-CORR-TPUT');
ylabel('Throughput (Kbps)');
xlabel('Geometry (db)');
axis auto;
hleg = legend('TESTBUILD-1','TESTBUILD-2');
set (hleg,'Location','Northwest');
subplot(1,2,2);
semilogy(snr_8,bler_8,'b--*',snr_88,bler_88,'r--o');
title 'EVA70HZ-LOW-CORR-BLER';
hold on;
grid on;
grid minor;
set(h,'Name','EVA70HZ-LOW-CORR-BLER');
ylabel('BLER');
xlabel('Geometry (db)');
axis auto;
hleg = legend('TESTBUILD-1','TESTBUILD-2');
set (hleg,'Location','Northeast');
print(h,'-dpng','EVA70HZ-LOW-CORR-PERFORMANCE');
fprintf(HTMFILE,'<h2 ALIGN=CENTER>EVA70HZ-LOW-CORR-PERFORMANCE</h2>\n');
fprintf(HTMFILE,'</p>\n');
fprintf(HTMFILE,'<IMG SRC=./EVA70HZ-LOW-CORR-PERFORMANCE.png><br>\n');
%close(h);
break;
case 'etu70'
%function etu70low
h=figure(11);
snr_bb = total_snr1(321:351);
tput_bb = total_tput1(321:351);
bler_bb = total_bler1(321:351);
snr_BB = total_snr2(321:351);
tput_BB = total_tput2(321:351);
bler_BB = total_bler2(321:351);
subplot(1,2,1);
plot(snr_bb,tput_bb,'b--*',snr_BB,tput_BB,'r--o');
title 'ETU70HZ-LOW-CORR-THROUGHPUT';
hold on;
grid on;
grid minor;
set(h,'Name','ETU70HZ-LOW-CORR-TPUT');
ylabel('Throughput (Kbps)');
xlabel('Geometry (db)');
axis auto;
hleg = legend('TESTBUILD-1','TESTBUILD-2');
set (hleg,'Location','Northwest');
subplot(1,2,2);
semilogy(snr_bb,bler_bb,'b--*',snr_BB,bler_BB,'r--o');
title 'ETU70HZ-LOW-CORR-BLER';
hold on;
grid on;
grid minor;
set(h,'Name','ETU70HZ-LOW-CORR-BLER');
ylabel('BLER');
xlabel('Geometry (db)');
axis auto;
hleg = legend('TESTBUILD-1','TESTBUILD-2');
set (hleg,'Location','Northeast');
print(h,'-dpng','ETU70HZ-LOW-CORR-PERFORMANCE');
fprintf(HTMFILE,'<h2 ALIGN=CENTER>ETU70HZ-LOW-CORR-PERFORMANCE</h2>\n');
fprintf(HTMFILE,'</p>\n');
fprintf(HTMFILE,'<IMG SRC=./ETU70HZ-LOW-CORR-PERFORMANCE.png><br>\n');
%close(h);
break;
case 'etu300'
%function etu300low
h=figure(14);
snr_gg = total_snr1(417:447);
tput_gg = total_tput1(417:447);
bler_gg = total_bler1(417:447);
snr_GG = total_snr2(417:447);
tput_GG = total_tput2(417:447);
bler_GG = total_bler2(417:447);
subplot(1,2,1);
plot(snr_gg,tput_gg,'b--*',snr_GG,tput_GG,'r--o');
title 'ETU300HZ-LOW-CORR-THROUGHPUT';
hold on;
grid on;
grid minor;
set(h,'Name','ETU300HZ-LOW-CORR-TPUT');
ylabel('Throughput (Kbps)');
xlabel('Geometry (db)');
axis auto;
hleg = legend('TESTBUILD-1','TESTBUILD-2');
set (hleg,'Location','Northwest');
subplot(1,2,2);
semilogy(snr_gg,bler_gg,'b--*',snr_GG,bler_GG,'r--o');
title 'ETU300HZ-LOW-CORR-BLER';
hold on;
grid on;
grid minor;
set(h,'Name','ETU300HZ-LOW-CORR-BLER');
ylabel('BLER');
xlabel('Geometry (db)');
axis auto;
hleg = legend('TESTBUILD-1','TESTBUILD-2');
set (hleg,'Location','Northeast');
print(h,'-dpng','ETU300HZ-LOW-CORR-PERFORMANCE');
fprintf(HTMFILE,'<h2 ALIGN=CENTER>ETU300HZ-LOW-CORR-PERFORMANCE</h2>\n');
fprintf(HTMFILE,'</p>\n');
fprintf(HTMFILE,'<IMG SRC=./ETU300HZ-LOW-CORR-PERFORMANCE.png><br>\n');
%close(h);
break;
end
case 'med'
switch(fp)
case 'eva5'
%function eva5med
h=figure(3);
snr_3 = total_snr1(65:95);
tput_3 = total_tput1(65:95);
bler_3 = total_bler1(65:95);
snr_33 = total_snr2(65:95);
tput_33 = total_tput2(65:95);
bler_33 = total_bler2(65:95);
subplot(1,2,1);
plot(snr_3,tput_3,'b--*',snr_33,tput_33,'r--o');
title 'EVA5HZ-MED-CORR-THROUGHPUT';
hold on;
grid on;
grid minor;
set(h,'Name','EVA5HZ-MED-CORR-TPUT');
ylabel('Throughput (Kbps)');
xlabel('Geometry (db)');
axis auto;
hleg = legend('TESTBUILD-1','TESTBUILD-2');
set (hleg,'Location','Northwest');
subplot(1,2,2);
semilogy(snr_3,bler_3,'b--*',snr_33,bler_33,'r--o');
title 'EVA5HZ-MED-CORR-BLER';
hold on;
grid on;
grid minor;
set(h,'Name','EVA5HZ-MED-CORR-BLER');
ylabel('BLER');
xlabel('Geometry (db)');
axis auto;
hleg = legend('TESTBUILD-1','TESTBUILD-2');
set (hleg,'Location','Northeast');
print(h,'-dpng','EVA5HZ-MED-CORR-PERFORMANCE');
fprintf(HTMFILE,'<h2 ALIGN=CENTER>EVA5HZ-MED-CORR-PERFORMANCE</h2>\n');
fprintf(HTMFILE,'</p>\n');
fprintf(HTMFILE,'<IMG SRC=./EVA5HZ-MED-CORR-PERFORMANCE.png><br>\n');
%close(h);
break;
case 'epa5'
%function epa5med
h=figure(6);
snr_6 = total_snr1(161:191);
tput_6 = total_tput1(161:191);
bler_6 = total_bler1(161:191);
snr_66 = total_snr2(161:191);
tput_66 = total_tput2(161:191);
bler_66 = total_bler2(161:191);
subplot(1,2,1);
plot(snr_6,tput_6,'b--*',snr_66,tput_66,'r--o');
title 'EPA5HZ-MED-CORR-THROUGHPUT';
hold on;
grid on;
grid minor;
set(h,'Name','EPA5HZ-MED-CORR-TPUT');
ylabel('Throughput (Kbps)');
xlabel('Geometry (db)');
axis auto;
hleg = legend('TESTBUILD-1','TESTBUILD-2');
set (hleg,'Location','Northwest');
subplot(1,2,2);
semilogy(snr_6,bler_6,'b--*',snr_66,bler_66,'r--o');
title 'EPA5HZ-MED-CORR-BLER';
hold on;
grid on;
grid minor;
set(h,'Name','EPA5HZ-MED-CORR-BLER');
ylabel('BLER');
xlabel('Geometry (db)');
axis auto;
hleg = legend('TESTBUILD-1','TESTBUILD-2');
set (hleg,'Location','Northeast');
print(h,'-dpng','EPA5HZ-MED-CORR-PERFORMANCE');
fprintf(HTMFILE,'<h2 ALIGN=CENTER>EPA5HZ-MED-CORR-PERFORMANCE</h2>\n');
fprintf(HTMFILE,'</p>\n');
fprintf(HTMFILE,'<IMG SRC=./EPA5HZ-MED-CORR-PERFORMANCE.png><br>\n');
%close(h);
break;
case 'eva70'
%function eva70med
h=figure(9);
snr_9 = total_snr1(257:287);
tput_9 = total_tput1(257:287);
bler_9 = total_bler1(257:287);
snr_99 = total_snr2(257:287);
tput_99 = total_tput2(257:287);
bler_99 = total_bler2(257:287);
subplot(1,2,1);
plot(snr_9,tput_9,'b--*',snr_99,tput_99,'r--o');
title 'EVA70HZ-MED-CORR-THROUGHPUT';
hold on;
grid on;
grid minor;
set(h,'Name','EVA70HZ-MED-CORR-TPUT');
ylabel('Throughput (Kbps)');
xlabel('Geometry (db)');
axis auto;
hleg = legend('TESTBUILD-1','TESTBUILD-2');
set (hleg,'Location','Northwest');
subplot(1,2,2);
semilogy(snr_9,bler_9,'b--*',snr_99,bler_99,'r--o');
title 'EVA70HZ-MED-CORR-BLER';
hold on;
grid on;
grid minor;
set(h,'Name','EVA70HZ-MED-CORR-BLER');
ylabel('BLER');
xlabel('Geometry (db)');
axis auto;
hleg = legend('TESTBUILD-1','TESTBUILD-2');
set (hleg,'Location','Northeast');
print(h,'-dpng','EVA70HZ-MED-CORR-PERFORMANCE');
fprintf(HTMFILE,'<h2 ALIGN=CENTER>EVA70HZ-MED-CORR-PERFORMANCE</h2>\n');
fprintf(HTMFILE,'</p>\n');
fprintf(HTMFILE,'<IMG SRC=./EVA70HZ-MED-CORR-PERFORMANCE.png><br>\n');
%close(h);
break;
case 'etu70'
%function etu70med
h=figure(12);
snr_cc = total_snr1(353:383);
tput_cc = total_tput1(353:383);
bler_cc = total_bler1(353:383);
snr_CC = total_snr2(353:383);
tput_CC = total_tput2(353:383);
bler_CC = total_bler2(353:383);
subplot(1,2,1);
plot(snr_cc,tput_cc,'b--*',snr_CC,tput_CC,'r--o');
title 'ETU70HZ-MED-CORR-THROUGHPUT';
hold on;
grid on;
grid minor;
set(h,'Name','ETU70HZ-MED-CORR-TPUT');
ylabel('Throughput (Kbps)');
xlabel('Geometry (db)');
axis auto;
hleg = legend('TESTBUILD-1','TESTBUILD-2');
set (hleg,'Location','Northwest');
subplot(1,2,2);
semilogy(snr_cc,bler_cc,'b--*',snr_CC,bler_CC,'r--o');
title 'ETU70HZ-MED-CORR-BLER';
hold on;
grid on;
grid minor;
set(h,'Name','ETU70HZ-MED-CORR-BLER');
ylabel('BLER');
xlabel('Geometry (db)');
axis auto;
hleg = legend('TESTBUILD-1','TESTBUILD-2');
set (hleg,'Location','Northeast');
print(h,'-dpng','ETU70HZ-MED-CORR-PERFORMANCE');
fprintf(HTMFILE,'<h2 ALIGN=CENTER>ETU70HZ-MED-CORR-PERFORMANCE</h2>\n');
fprintf(HTMFILE,'</p>\n');
fprintf(HTMFILE,'<IMG SRC=./ETU70HZ-MED-CORR-PERFORMANCE.png><br>\n');
%close(h);
break;
case 'etu300'
%function etu300med
h=figure(15);
snr_gg = total_snr1(449:479);
tput_gg = total_tput1(449:479);
bler_gg = total_bler1(449:479);
snr_GG = total_snr2(449:479);
tput_GG = total_tput2(449:479);
bler_GG = total_bler2(449:479);
subplot(1,2,1);
plot(snr_gg,tput_gg,'b--*',snr_GG,tput_GG,'r--o');
title 'ETU300HZ-MED-CORR-THROUGHPUT';
hold on;
grid on;
grid minor;
set(h,'Name','ETU300HZ-MED-CORR-TPUT');
ylabel('Throughput (Kbps)');
xlabel('Geometry (db)');
axis auto;
hleg = legend('TESTBUILD-1','TESTBUILD-2');
set (hleg,'Location','Northwest');
subplot(1,2,2);
semilogy(snr_gg,bler_gg,'b--*',snr_GG,bler_GG,'r--o');
title 'ETU300HZ-MED-CORR-BLER';
hold on;
grid on;
grid minor;
set(h,'Name','ETU300HZ-MED-CORR-BLER');
ylabel('BLER');
xlabel('Geometry (db)');
axis auto;
hleg = legend('TESTBUILD-1','TESTBUILD-2');
set (hleg,'Location','Northeast');
print(h,'-dpng','ETU300HZ-MED-CORR-PERFORMANCE');
fprintf(HTMFILE,'<h2 ALIGN=CENTER>ETU300HZ-MED-CORR-PERFORMANCE</h2>\n');
fprintf(HTMFILE,'</p>\n');
fprintf(HTMFILE,'<IMG SRC=./ETU300HZ-MED-CORR-PERFORMANCE.png><br>\n');
%close(h);
break;
end
case 'high'
switch (fp)
case 'eva5'
%function eva5high
h=figure(4);
snr_4 = total_snr1(97:127);
tput_4 = total_tput1(97:127);
bler_4 = total_bler1(97:127);
snr_44 = total_snr2(97:127);
tput_44 = total_tput2(97:127);
bler_44 = total_bler2(97:127);
subplot(1,2,1);
plot(snr_4,tput_4,'b--*',snr_44,tput_44,'r--o');
title 'EVA5HZ-HI GH-CORR-THROUGHPUT';
hold on;
grid on;
grid minor;
set(h,'Name','EVA5HZ-HIGH-CORR-TPUT');
ylabel('Throughput (Kbps)');
xlabel('Geometry (db)');
axis auto;
hleg = legend('TESTBUILD-1','TESTBUILD-2');
set (hleg,'Location','Northwest');
subplot(1,2,2);
semilogy(snr_4,bler_4,'b--*',snr_44,bler_44,'r--o');
title 'EVA5HZ-HIGH-CORR-BLER';
hold on;
grid on;
grid minor;
set(h,'Name','EVA5HZ-HIGH-CORR-BLER');
ylabel('BLER');
xlabel('Geometry (db)');
axis auto;
hleg = legend('TESTBUILD-1','TESTBUILD-2');
set (hleg,'Location','Northeast');
print(h,'-dpng','EVA5HZ-HIGH-CORR-PERFORMANCE');
fprintf(HTMFILE,'<h2 ALIGN=CENTER>EVA5HZ-HIGH-CORR-PERFORMANCE</h2>\n');
fprintf(HTMFILE,'</p>\n');
fprintf(HTMFILE,'<IMG SRC=./EVA5HZ-HIGH-CORR-PERFORMANCE.png><br>\n');
%close(h);
break;
case 'epa5'
%function epa5high
h=figure(7);
snr_7 = total_snr1(193:223);
tput_7 = total_tput1(193:223);
bler_7 = total_bler1(193:223);
snr_77 = total_snr2(193:223);
tput_77 = total_tput2(193:223);
bler_77 = total_bler2(193:223);
subplot(1,2,1);
plot(snr_7,tput_7,'b--*',snr_77,tput_77,'r--o');
title 'EPA5HZ-HIGH-CORR-THROUGHPUT';
hold on;
grid on;
grid minor;
set(h,'Name','EPA5HZ-HIGH-CORR-TPUT');
ylabel('Throughput (Kbps)');
xlabel('Geometry (db)');
axis auto;
hleg = legend('TESTBUILD-1','TESTBUILD-2');
set (hleg,'Location','Northwest');
subplot(1,2,2);
semilogy(snr_7,bler_7,'b--*',snr_77,bler_77,'r--o');
title 'EPA5HZ-HIGH-CORR-BLER';
hold on;
grid on;
grid minor;
set(h,'Name','EPA5HZ-HIGH-CORR-BLER');
ylabel('BLER');
xlabel('Geometry (db)');
axis auto;
hleg = legend('TESTBUILD-1','TESTBUILD-2');
set (hleg,'Location','Northeast');
print(h,'-dpng','EPA5HZ-HIGH-CORR-PERFORMANCE');
fprintf(HTMFILE,'<h2 ALIGN=CENTER>EPA5HZ-HIGH-CORR-PERFORMANCE</h2>\n');
fprintf(HTMFILE,'</p>\n');
fprintf(HTMFILE,'<IMG SRC=./EPA5HZ-HIGH-CORR-PERFORMANCE.png><br>\n');
%close(h);
break;
case 'eva70'
%function eva70high
h=figure(10);
snr_aa = total_snr1(289:319);
tput_aa = total_tput1(289:319);
bler_aa = total_bler1(289:319);
snr_AA = total_snr2(289:319);
tput_AA = total_tput2(289:319);
bler_AA = total_bler2(289:319);
subplot(1,2,1);
plot(snr_aa,tput_aa,'b--*',snr_AA,tput_AA,'r--o');
title 'EVA70HZ-HIGH-CORR-THROUGHPUT';
hold on;
grid on;
grid minor;
set(h,'Name','EVA70HZ-HIGH-CORR-TPUT');
ylabel('Throughput (Kbps)');
xlabel('Geometry (db)');
axis auto;
hleg = legend('TESTBUILD-1','TESTBUILD-2');
set (hleg,'Location','Northwest');
subplot(1,2,2);
semilogy(snr_aa,bler_aa,'b--*',snr_AA,bler_AA,'r--o');
title 'EVA70HZ-HIGH-CORR-BLER';
hold on;
grid on;
grid minor;
set(h,'Name','EVA70HZ-HIGH-CORR-BLER');
ylabel('BLER');
xlabel('Geometry (db)');
axis auto;
hleg = legend('TESTBUILD-1','TESTBUILD-2');
set (hleg,'Location','Northeast');
print(h,'-dpng','EVA70HZ-HIGH-CORR-PERFORMANCE');
fprintf(HTMFILE,'<h2 ALIGN=CENTER>EVA70HZ-HIGH-CORR-PERFORMANCE</h2>\n');
fprintf(HTMFILE,'</p>\n');
fprintf(HTMFILE,'<IMG SRC=./EVA70HZ-HIGH-CORR-PERFORMANCE.png><br>\n');
%close(h);
break;
case 'etu70'
%function etu70high
h=figure(13);
snr_dd = total_snr1(385:415);
tput_dd = total_tput1(385:415);
bler_dd = total_bler1(385:415);
snr_DD = total_snr2(385:415);
tput_DD = total_tput2(385:415);
bler_DD = total_bler2(385:415);
subplot(1,2,1);
plot(snr_dd,tput_dd,'b--*',snr_DD,tput_DD,'r--o');
title 'ETU70HZ-HIGH-CORR-THROUGHPUT';
hold on;
grid on;
grid minor;
set(h,'Name','ETU70HZ-HIGH-CORR-TPUT');
ylabel('Throughput (Kbps)');
xlabel('Geometry (db)');
axis auto;
hleg = legend('TESTBUILD-1','TESTBUILD-2');
set (hleg,'Location','Northwest');
subplot(1,2,2);
semilogy(snr_dd,bler_dd,'b--*',snr_DD,bler_DD,'r--o');
title 'ETU70HZ-HIGH-CORR-BLER';
hold on;
grid on;
grid minor;
set(h,'Name','ETU70HZ-HIGH-CORR-BLER');
ylabel('BLER');
xlabel('Geometry (db)');
axis auto;
hleg = legend('TESTBUILD-1','TESTBUILD-2');
set (hleg,'Location','Northeast');
print(h,'-dpng','ETU70HZ-HIGH-CORR-PERFORMANCE');
fprintf(HTMFILE,'<h2 ALIGN=CENTER>ETU70HZ-HIGH-CORR-PERFORMANCE</h2>\n');
fprintf(HTMFILE,'</p>\n');
fprintf(HTMFILE,'<IMG SRC=./ETU70HZ-HIGH-CORR-PERFORMANCE.png><br>\n');
%close(h);
break;
case 'etu300'
%function etu300high
h=figure(16);
snr_gg = total_snr1(481:511);
tput_gg = total_tput1(481:511);
bler_gg = total_bler1(481:511);
snr_GG = total_snr2(481:511);
tput_GG = total_tput2(481:511);
bler_GG = total_bler2(481:511);
subplot(1,2,1);
plot(snr_gg,tput_gg,'b--*',snr_GG,tput_GG,'r--o');
title 'ETU300HZ-HIGH-CORR-THROUGHPUT';
hold on;
grid on;
grid minor;
set(h,'Name','ETU300HZ-HIGH-CORR-TPUT');
ylabel('Throughput (Kbps)');
xlabel('Geometry (db)');
axis auto;
hleg = legend('TESTBUILD-1','TESTBUILD-2');
set (hleg,'Location','Northwest');
subplot(1,2,2);
semilogy(snr_gg,bler_gg,'b--*',snr_GG,bler_GG,'r--o');
title 'ETU300HZ-HIGH-CORR-BLER';
hold on;
grid on;
grid minor;
set(h,'Name','ETU300HZ-HIGH-CORR-BLER');
ylabel('BLER');
xlabel('Geometry (db)');
axis auto;
hleg = legend('TESTBUILD-1','TESTBUILD-2');
set (hleg,'Location','Northeast');
print(h,'-dpng','ETU300HZ-HIGH-CORR-PERFORMANCE');
fprintf(HTMFILE,'<h2 ALIGN=CENTER>ETU300HZ-HIGH-CORR-PERFORMANCE</h2>\n');
fprintf(HTMFILE,'</p>\n');
fprintf(HTMFILE,'<IMG SRC=./ETU300HZ-HIGH-CORR-PERFORMANCE.png><br>\n');
%close(h);
break;
end
case 'all'
switch 'fp'
case 'EVA5'
%function eva5low
h=figure(1);
snr_2 = total_snr1(33:63);
tput_2 = total_tput1(33:63);
bler_2 = total_bler1(33:63);
snr_22 = total_snr2(33:63);
tput_22 = total_tput2(33:63);
bler_22 = total_bler2(33:63);
subplot(1,2,1);
plot(snr_2,tput_2,'b--*',snr_22,tput_22,'r--o');
title 'EVA5HZ-LOW-CORR-THROUGHPUT';
hold on;
grid on;
grid minor;
set(h,'Name','EVA5HZ-LOW-CORR-TPUT');
ylabel('Throughput (Kbps)');
xlabel('Geometry (db)');
axis auto;
hleg = legend('TESTBUILD-1','TESTBUILD-2');
set (hleg,'Location','Northwest');
subplot(1,2,2);
semilogy(snr_2,bler_2,'b--*',snr_22,bler_22,'r--o');
title 'EVA5HZ-LOW-CORR-BLER';
hold on;
grid on;
grid minor;
set(h,'Name','EVA5HZ-LOW-CORR-BLER');
ylabel('BLER');
xlabel('Geometry (db)');
axis auto;
hleg = legend('TESTBUILD-1','TESTBUILD-2');
set (hleg,'Location','Northeast');
print(h,'-dpng','EVA5HZ-LOW-CORR-PERFORMANCE');
fprintf(HTMFILE,'<h2 ALIGN=CENTER>EVA5HZ-LOW-CORR-PERFORMANCE</h2>\n');
fprintf(HTMFILE,'</p>\n');
fprintf(HTMFILE,'<IMG SRC=./EVA5HZ-LOW-CORR-PERFORMANCE.png><br>\n');
%close(h);
%function eva5medium
h=figure(2);
snr_3 = total_snr1(65:95);
tput_3 = total_tput1(65:95);
bler_3 = total_bler1(65:95);
snr_33 = total_snr2(65:95);
tput_33 = total_tput2(65:95);
bler_33 = total_bler2(65:95);
subplot(1,2,1);
plot(snr_3,tput_3,'b--*',snr_33,tput_33,'r--o');
title 'EVA5HZ-MED-CORR-THROUGHPUT';
hold on;
grid on;
grid minor;
set(h,'Name','EVA5HZ-MED-CORR-TPUT');
ylabel('Throughput (Kbps)');
xlabel('Geometry (db)');
axis auto;
hleg = legend('TESTBUILD-1','TESTBUILD-2');
set (hleg,'Location','Northwest');
subplot(1,2,2);
semilogy(snr_3,bler_3,'b--*',snr_33,bler_33,'r--o');
title 'EVA5HZ-MED-CORR-BLER';
hold on;
grid on;
grid minor;
set(h,'Name','EVA5HZ-MED-CORR-BLER');
ylabel('BLER');
xlabel('Geometry (db)');
axis auto;
hleg = legend('TESTBUILD-1','TESTBUILD-2');
set (hleg,'Location','Northeast');
print(h,'-dpng','EVA5HZ-MED-CORR-PERFORMANCE');
fprintf(HTMFILE,'<h2 ALIGN=CENTER>EVA5HZ-MED-CORR-PERFORMANCE</h2>\n');
fprintf(HTMFILE,'</p>\n');
fprintf(HTMFILE,'<IMG SRC=./EVA5HZ-MED-CORR-PERFORMANCE.png><br>\n');
%close(h);
%function eva5high
h=figure(3);
snr_4 = total_snr1(97:127);
tput_4 = total_tput1(97:127);
bler_4 = total_bler1(97:127);
snr_44 = total_snr2(97:127);
tput_44 = total_tput2(97:127);
bler_44 = total_bler2(97:127);
subplot(1,2,1);
plot(snr_4,tput_4,'b--*',snr_44,tput_44,'r--o');
title 'EVA5HZ-HI GH-CORR-THROUGHPUT';
hold on;
grid on;
grid minor;
set(h,'Name','EVA5HZ-HIGH-CORR-TPUT');
ylabel('Throughput (Kbps)');
xlabel('Geometry (db)');
axis auto;
hleg = legend('TESTBUILD-1','TESTBUILD-2');
set (hleg,'Location','Northwest');
subplot(1,2,2);
semilogy(snr_4,bler_4,'b--*',snr_44,bler_44,'r--o');
title 'EVA5HZ-HIGH-CORR-BLER';
hold on;
grid on;
grid minor;
set(h,'Name','EVA5HZ-HIGH-CORR-BLER');
ylabel('BLER');
xlabel('Geometry (db)');
axis auto;
hleg = legend('TESTBUILD-1','TESTBUILD-2');
set (hleg,'Location','Northeast');
print(h,'-dpng','EVA5HZ-HIGH-CORR-PERFORMANCE');
fprintf(HTMFILE,'<h2 ALIGN=CENTER>EVA5HZ-HIGH-CORR-PERFORMANCE</h2>\n');
fprintf(HTMFILE,'</p>\n');
fprintf(HTMFILE,'<IMG SRC=./EVA5HZ-HIGH-CORR-PERFORMANCE.png><br>\n');
%close(h);
break;
case 'EPA5'
%function epa5low
h=figure(1);
snr_5 = total_snr1(129:159);
tput_5 = total_tput1(129:159);
bler_5 = total_bler1(129:159);
snr_55 = total_snr2(129:159);
tput_55 = total_tput2(129:159);
bler_55 = total_bler2(129:159);
subplot(1,2,1);
plot(snr_5,tput_5,'b--*',snr_55,tput_55,'r--o');
title 'EPA5HZ-LOW-CORR-THROUGHPUT';
hold on;
grid on;
grid minor;
set(h,'Name','EPA5HZ-LOW-CORR-TPUT');
ylabel('Throughput (Kbps)');
xlabel('Geometry (db)');
axis auto;
hleg = legend('TESTBUILD-1','TESTBUILD-2');
set (hleg,'Location','Northwest');
subplot(1,2,2);
semilogy(snr_5,bler_5,'b--*',snr_55,bler_55,'r--o');
title 'EPA5HZ-LOW-CORR-BLER';
hold on;
grid on;
grid minor;
set(h,'Name','EPA5HZ-LOW-CORR-BLER');
ylabel('BLER');
xlabel('Geometry (db)');
axis auto;
hleg = legend('TESTBUILD-1','TESTBUILD-2');
set (hleg,'Location','Northeast');
print(h,'-dpng','EPA5HZ-LOW-CORR-PERFORMANCE');
fprintf(HTMFILE,'<h2 ALIGN=CENTER>EPA5HZ-LOW-CORR-PERFORMANCE</h2>\n');
fprintf(HTMFILE,'</p>\n');
fprintf(HTMFILE,'<IMG SRC=./EPA5HZ-LOW-CORR-PERFORMANCE.png><br>\n');
%close(h);
%function epa5medium
h=figure(2);
snr_6 = total_snr1(161:191);
tput_6 = total_tput1(161:191);
bler_6 = total_bler1(161:191);
snr_66 = total_snr2(161:191);
tput_66 = total_tput2(161:191);
bler_66 = total_bler2(161:191);
subplot(1,2,1);
plot(snr_6,tput_6,'b--*',snr_66,tput_66,'r--o');
title 'EPA5HZ-MED-CORR-THROUGHPUT';
hold on;
grid on;
grid minor;
set(h,'Name','EPA5HZ-MED-CORR-TPUT');
ylabel('Throughput (Kbps)');
xlabel('Geometry (db)');
axis auto;
hleg = legend('TESTBUILD-1','TESTBUILD-2');
set (hleg,'Location','Northwest');
subplot(1,2,2);
semilogy(snr_6,bler_6,'b--*',snr_66,bler_66,'r--o');
title 'EPA5HZ-MED-CORR-BLER';
hold on;
grid on;
grid minor;
set(h,'Name','EPA5HZ-MED-CORR-BLER');
ylabel('BLER');
xlabel('Geometry (db)');
axis auto;
hleg = legend('TESTBUILD-1','TESTBUILD-2');
set (hleg,'Location','Northeast');
print(h,'-dpng','EPA5HZ-MED-CORR-PERFORMANCE');
fprintf(HTMFILE,'<h2 ALIGN=CENTER>EPA5HZ-MED-CORR-PERFORMANCE</h2>\n');
fprintf(HTMFILE,'</p>\n');
fprintf(HTMFILE,'<IMG SRC=./EPA5HZ-MED-CORR-PERFORMANCE.png><br>\n');
%close(h);
%function epa5high
h=figure(3);
snr_7 = total_snr1(193:223);
tput_7 = total_tput1(193:223);
bler_7 = total_bler1(193:223);
snr_77 = total_snr2(193:223);
tput_77 = total_tput2(193:223);
bler_77 = total_bler2(193:223);
subplot(1,2,1);
plot(snr_7,tput_7,'b--*',snr_77,tput_77,'r--o');
title 'EPA5HZ-HIGH-CORR-THROUGHPUT';
hold on;
grid on;
grid minor;
set(h,'Name','EPA5HZ-HIGH-CORR-TPUT');
ylabel('Throughput (Kbps)');
xlabel('Geometry (db)');
axis auto;
hleg = legend('TESTBUILD-1','TESTBUILD-2');
set (hleg,'Location','Northwest');
subplot(1,2,2);
semilogy(snr_7,bler_7,'b--*',snr_77,bler_77,'r--o');
title 'EPA5HZ-HIGH-CORR-BLER';
hold on;
grid on;
grid minor;
set(h,'Name','EPA5HZ-HIGH-CORR-BLER');
ylabel('BLER');
xlabel('Geometry (db)');
axis auto;
hleg = legend('TESTBUILD-1','TESTBUILD-2');
set (hleg,'Location','Northeast');
print(h,'-dpng','EPA5HZ-HIGH-CORR-PERFORMANCE');
fprintf(HTMFILE,'<h2 ALIGN=CENTER>EPA5HZ-HIGH-CORR-PERFORMANCE</h2>\n');
fprintf(HTMFILE,'</p>\n');
fprintf(HTMFILE,'<IMG SRC=./EPA5HZ-HIGH-CORR-PERFORMANCE.png><br>\n');
%close(h);
break;
case 'EVA70'
%function eva70low
h=figure(1);
snr_8 = total_snr1(225:255);
tput_8 = total_tput1(225:255);
bler_8 = total_bler1(225:255);
snr_88 = total_snr2(225:255);
tput_88 = total_tput2(225:255);
bler_88 = total_bler2(225:255);
subplot(1,2,1);
plot(snr_8,tput_8,'b--*',snr_88,tput_88,'r--o');
title 'EVA70HZ-LOW-CORR-THROUGHPUT';
hold on;
grid on;
grid minor;
set(h,'Name','EVA70HZ-LOW-CORR-TPUT');
ylabel('Throughput (Kbps)');
xlabel('Geometry (db)');
axis auto;
hleg = legend('TESTBUILD-1','TESTBUILD-2');
set (hleg,'Location','Northwest');
subplot(1,2,2);
semilogy(snr_8,bler_8,'b--*',snr_88,bler_88,'r--o');
title 'EVA70HZ-LOW-CORR-BLER';
hold on;
grid on;
grid minor;
set(h,'Name','EVA70HZ-LOW-CORR-BLER');
ylabel('BLER');
xlabel('Geometry (db)');
axis auto;
hleg = legend('TESTBUILD-1','TESTBUILD-2');
set (hleg,'Location','Northeast');
print(h,'-dpng','EVA70HZ-LOW-CORR-PERFORMANCE');
fprintf(HTMFILE,'<h2 ALIGN=CENTER>EVA70HZ-LOW-CORR-PERFORMANCE</h2>\n');
fprintf(HTMFILE,'</p>\n');
fprintf(HTMFILE,'<IMG SRC=./EVA70HZ-LOW-CORR-PERFORMANCE.png><br>\n');
%close(h);
%function eva70medium
h=figure(2);
snr_9 = total_snr1(257:287);
tput_9 = total_tput1(257:287);
bler_9 = total_bler1(257:287);
snr_99 = total_snr2(257:287);
tput_99 = total_tput2(257:287);
bler_99 = total_bler2(257:287);
subplot(1,2,1);
plot(snr_9,tput_9,'b--*',snr_99,tput_99,'r--o');
title 'EVA70HZ-MED-CORR-THROUGHPUT';
hold on;
grid on;
grid minor;
set(h,'Name','EVA70HZ-MED-CORR-TPUT');
ylabel('Throughput (Kbps)');
xlabel('Geometry (db)');
axis auto;
hleg = legend('TESTBUILD-1','TESTBUILD-2');
set (hleg,'Location','Northwest');
subplot(1,2,2);
semilogy(snr_9,bler_9,'b--*',snr_99,bler_99,'r--o');
title 'EVA70HZ-MED-CORR-BLER';
hold on;
grid on;
grid minor;
set(h,'Name','EVA70HZ-MED-CORR-BLER');
ylabel('BLER');
xlabel('Geometry (db)');
axis auto;
hleg = legend('TESTBUILD-1','TESTBUILD-2');
set (hleg,'Location','Northeast');
print(h,'-dpng','EVA70HZ-MED-CORR-PERFORMANCE');
fprintf(HTMFILE,'<h2 ALIGN=CENTER>EVA70HZ-MED-CORR-PERFORMANCE</h2>\n');
fprintf(HTMFILE,'</p>\n');
fprintf(HTMFILE,'<IMG SRC=./EVA70HZ-MED-CORR-PERFORMANCE.png><br>\n');
%close(h);
%function eva70high
h=figure(3);
snr_aa = total_snr1(289:319);
tput_aa = total_tput1(289:319);
bler_aa = total_bler1(289:319);
snr_AA = total_snr2(289:319);
tput_AA = total_tput2(289:319);
bler_AA = total_bler2(289:319);
subplot(1,2,1);
plot(snr_aa,tput_aa,'b--*',snr_AA,tput_AA,'r--o');
title 'EVA70HZ-HIGH-CORR-THROUGHPUT';
hold on;
grid on;
grid minor;
set(h,'Name','EVA70HZ-HIGH-CORR-TPUT');
ylabel('Throughput (Kbps)');
xlabel('Geometry (db)');
axis auto;
hleg = legend('TESTBUILD-1','TESTBUILD-2');
set (hleg,'Location','Northwest');
subplot(1,2,2);
semilogy(snr_aa,bler_aa,'b--*',snr_AA,bler_AA,'r--o');
title 'EVA70HZ-HIGH-CORR-BLER';
hold on;
grid on;
grid minor;
set(h,'Name','EVA70HZ-HIGH-CORR-BLER');
ylabel('BLER');
xlabel('Geometry (db)');
axis auto;
hleg = legend('TESTBUILD-1','TESTBUILD-2');
set (hleg,'Location','Northeast');
print(h,'-dpng','EVA70HZ-HIGH-CORR-PERFORMANCE');
fprintf(HTMFILE,'<h2 ALIGN=CENTER>EVA70HZ-HIGH-CORR-PERFORMANCE</h2>\n');
fprintf(HTMFILE,'</p>\n');
fprintf(HTMFILE,'<IMG SRC=./EVA70HZ-HIGH-CORR-PERFORMANCE.png><br>\n');
%close(h);
break;
case 'ETU70'
%function etu70low
h=figure(1);
snr_bb = total_snr1(321:351);
tput_bb = total_tput1(321:351);
bler_bb = total_bler1(321:351);
snr_BB = total_snr2(321:351);
tput_BB = total_tput2(321:351);
bler_BB = total_bler2(321:351);
subplot(1,2,1);
plot(snr_bb,tput_bb,'b--*',snr_BB,tput_BB,'r--o');
title 'ETU70HZ-LOW-CORR-THROUGHPUT';
hold on;
grid on;
grid minor;
set(h,'Name','ETU70HZ-LOW-CORR-TPUT');
ylabel('Throughput (Kbps)');
xlabel('Geometry (db)');
axis auto;
hleg = legend('TESTBUILD-1','TESTBUILD-2');
set (hleg,'Location','Northwest');
subplot(1,2,2);
semilogy(snr_bb,bler_bb,'b--*',snr_BB,bler_BB,'r--o');
title 'ETU70HZ-LOW-CORR-BLER';
hold on;
grid on;
grid minor;
set(h,'Name','ETU70HZ-LOW-CORR-BLER');
ylabel('BLER');
xlabel('Geometry (db)');
axis auto;
hleg = legend('TESTBUILD-1','TESTBUILD-2');
set (hleg,'Location','Northeast');
print(h,'-dpng','ETU70HZ-LOW-CORR-PERFORMANCE');
fprintf(HTMFILE,'<h2 ALIGN=CENTER>ETU70HZ-LOW-CORR-PERFORMANCE</h2>\n');
fprintf(HTMFILE,'</p>\n');
fprintf(HTMFILE,'<IMG SRC=./ETU70HZ-LOW-CORR-PERFORMANCE.png><br>\n');
%close(h);
%function etu70medium
h=figure(2);
snr_cc = total_snr1(353:383);
tput_cc = total_tput1(353:383);
bler_cc = total_bler1(353:383);
snr_CC = total_snr2(353:383);
tput_CC = total_tput2(353:383);
bler_CC = total_bler2(353:383);
subplot(1,2,1);
plot(snr_cc,tput_cc,'b--*',snr_CC,tput_CC,'r--o');
title 'ETU70HZ-MED-CORR-THROUGHPUT';
hold on;
grid on;
grid minor;
set(h,'Name','ETU70HZ-MED-CORR-TPUT');
ylabel('Throughput (Kbps)');
xlabel('Geometry (db)');
axis auto;
hleg = legend('TESTBUILD-1','TESTBUILD-2');
set (hleg,'Location','Northwest');
subplot(1,2,2);
semilogy(snr_cc,bler_cc,'b--*',snr_CC,bler_CC,'r--o');
title 'ETU70HZ-MED-CORR-BLER';
hold on;
grid on;
grid minor;
set(h,'Name','ETU70HZ-MED-CORR-BLER');
ylabel('BLER');
xlabel('Geometry (db)');
axis auto;
hleg = legend('TESTBUILD-1','TESTBUILD-2');
set (hleg,'Location','Northeast');
print(h,'-dpng','ETU70HZ-MED-CORR-PERFORMANCE');
fprintf(HTMFILE,'<h2 ALIGN=CENTER>ETU70HZ-MED-CORR-PERFORMANCE</h2>\n');
fprintf(HTMFILE,'</p>\n');
fprintf(HTMFILE,'<IMG SRC=./ETU70HZ-MED-CORR-PERFORMANCE.png><br>\n');
%close(h);
%function etu70high
h=figure(3);
snr_dd = total_snr1(385:415);
tput_dd = total_tput1(385:415);
bler_dd = total_bler1(385:415);
snr_DD = total_snr2(385:415);
tput_DD = total_tput2(385:415);
bler_DD = total_bler2(385:415);
subplot(1,2,1);
plot(snr_dd,tput_dd,'b--*',snr_DD,tput_DD,'r--o');
title 'ETU70HZ-HIGH-CORR-THROUGHPUT';
hold on;
grid on;
grid minor;
set(h,'Name','ETU70HZ-HIGH-CORR-TPUT');
ylabel('Throughput (Kbps)');
xlabel('Geometry (db)');
axis auto;
hleg = legend('TESTBUILD-1','TESTBUILD-2');
set (hleg,'Location','Northwest');
subplot(1,2,2);
semilogy(snr_dd,bler_dd,'b--*',snr_DD,bler_DD,'r--o');
title 'ETU70HZ-HIGH-CORR-BLER';
hold on;
grid on;
grid minor;
set(h,'Name','ETU70HZ-HIGH-CORR-BLER');
ylabel('BLER');
xlabel('Geometry (db)');
axis auto;
hleg = legend('TESTBUILD-1','TESTBUILD-2');
set (hleg,'Location','Northeast');
print(h,'-dpng','ETU70HZ-HIGH-CORR-PERFORMANCE');
fprintf(HTMFILE,'<h2 ALIGN=CENTER>ETU70HZ-HIGH-CORR-PERFORMANCE</h2>\n');
fprintf(HTMFILE,'</p>\n');
fprintf(HTMFILE,'<IMG SRC=./ETU70HZ-HIGH-CORR-PERFORMANCE.png><br>\n');
%close(h);
break;
case 'ETU300'
%function etu300low
h=figure(1);
snr_gg = total_snr1(417:447);
tput_gg = total_tput1(417:447);
bler_gg = total_bler1(417:447);
snr_GG = total_snr2(417:447);
tput_GG = total_tput2(417:447);
bler_GG = total_bler2(417:447);
subplot(1,2,1);
plot(snr_gg,tput_gg,'b--*',snr_GG,tput_GG,'r--o');
title 'ETU300HZ-LOW-CORR-THROUGHPUT';
hold on;
grid on;
grid minor;
set(h,'Name','ETU300HZ-LOW-CORR-TPUT');
ylabel('Throughput (Kbps)');
xlabel('Geometry (db)');
axis auto;
hleg = legend('TESTBUILD-1','TESTBUILD-2');
set (hleg,'Location','Northwest');
subplot(1,2,2);
semilogy(snr_gg,bler_gg,'b--*',snr_GG,bler_GG,'r--o');
title 'ETU300HZ-LOW-CORR-BLER';
hold on;
grid on;
grid minor;
set(h,'Name','ETU300HZ-LOW-CORR-BLER');
ylabel('BLER');
xlabel('Geometry (db)');
axis auto;
hleg = legend('TESTBUILD-1','TESTBUILD-2');
set (hleg,'Location','Northeast');
print(h,'-dpng','ETU300HZ-LOW-CORR-PERFORMANCE');
fprintf(HTMFILE,'<h2 ALIGN=CENTER>ETU300HZ-LOW-CORR-PERFORMANCE</h2>\n');
fprintf(HTMFILE,'</p>\n');
fprintf(HTMFILE,'<IMG SRC=./ETU300HZ-LOW-CORR-PERFORMANCE.png><br>\n');
%close(h);
%function etu300medium
h=figure(2);
snr_gg = total_snr1(449:479);
tput_gg = total_tput1(449:479);
bler_gg = total_bler1(449:479);
snr_GG = total_snr2(449:479);
tput_GG = total_tput2(449:479);
bler_GG = total_bler2(449:479);
subplot(1,2,1);
plot(snr_gg,tput_gg,'b--*',snr_GG,tput_GG,'r--o');
title 'ETU300HZ-MED-CORR-THROUGHPUT';
hold on;
grid on;
grid minor;
set(h,'Name','ETU300HZ-MED-CORR-TPUT');
ylabel('Throughput (Kbps)');
xlabel('Geometry (db)');
axis auto;
hleg = legend('TESTBUILD-1','TESTBUILD-2');
set (hleg,'Location','Northwest');
subplot(1,2,2);
semilogy(snr_gg,bler_gg,'b--*',snr_GG,bler_GG,'r--o');
title 'ETU300HZ-MED-CORR-BLER';
hold on;
grid on;
grid minor;
set(h,'Name','ETU300HZ-MED-CORR-BLER');
ylabel('BLER');
xlabel('Geometry (db)');
axis auto;
hleg = legend('TESTBUILD-1','TESTBUILD-2');
set (hleg,'Location','Northeast');
print(h,'-dpng','ETU300HZ-MED-CORR-PERFORMANCE');
fprintf(HTMFILE,'<h2 ALIGN=CENTER>ETU300HZ-MED-CORR-PERFORMANCE</h2>\n');
fprintf(HTMFILE,'</p>\n');
fprintf(HTMFILE,'<IMG SRC=./ETU300HZ-MED-CORR-PERFORMANCE.png><br>\n');
%close(h);
%function etu300high
h=figure(3);
snr_gg = total_snr1(481:511);
tput_gg = total_tput1(481:511);
bler_gg = total_bler1(481:511);
snr_GG = total_snr2(481:511);
tput_GG = total_tput2(481:511);
bler_GG = total_bler2(481:511);
subplot(1,2,1);
plot(snr_gg,tput_gg,'b--*',snr_GG,tput_GG,'r--o');
title 'ETU300HZ-HIGH-CORR-THROUGHPUT';
hold on;
grid on;
grid minor;
set(h,'Name','ETU300HZ-HIGH-CORR-TPUT');
ylabel('Throughput (Kbps)');
xlabel('Geometry (db)');
axis auto;
hleg = legend('TESTBUILD-1','TESTBUILD-2');
set (hleg,'Location','Northwest');
subplot(1,2,2);
semilogy(snr_gg,bler_gg,'b--*',snr_GG,bler_GG,'r--o');
title 'ETU300HZ-HIGH-CORR-BLER';
hold on;
grid on;
grid minor;
set(h,'Name','ETU300HZ-HIGH-CORR-BLER');
ylabel('BLER');
xlabel('Geometry (db)');
axis auto;
hleg = legend('TESTBUILD-1','TESTBUILD-2');
set (hleg,'Location','Northeast');
print(h,'-dpng','ETU300HZ-HIGH-CORR-PERFORMANCE');
fprintf(HTMFILE,'<h2 ALIGN=CENTER>ETU300HZ-HIGH-CORR-PERFORMANCE</h2>\n');
fprintf(HTMFILE,'</p>\n');
fprintf(HTMFILE,'<IMG SRC=./ETU300HZ-HIGH-CORR-PERFORMANCE.png><br>\n');
%close(h);
break;
end
end

채택된 답변

Geoff Hayes
Geoff Hayes 2014년 6월 20일
Sriharsha - in the future, please just attach your code to your question using the paperclip button.
Look at the case statement for 'all'
case 'all'
switch 'fp'
case 'EVA5'
Note the switch is for the string 'fp' rather than the variable fp. Change the line to switch(fp) and the code should work.
If you encounter a problem like this again, try putting in a breakpoint and stepping through the code. Explanations for why code isn't working can sometimes be solved in this way….
  댓글 수: 1
SRIHARSHA SUSARLA
SRIHARSHA SUSARLA 2014년 6월 20일
Thanks a lot dude. Yeah, I was in a hurry so just pasted it right away. I shall attach from now on.And this correction did solve the problem. I knew everything was right but one minute thing which I wasn't not able to spot and needed a fresh eye to view. Thank you once again :)

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Visualization and Data Export에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by