diff options
-rw-r--r-- | test3.sce | 66 |
1 files changed, 33 insertions, 33 deletions
@@ -46,28 +46,28 @@ end -/////////////// Test case for peig ///////// +/////////////// Test case for peig ///////// failed with error -> Undefined variable: subspaceMethodsInputPars -//fs = 100; -//t = 0:1/fs:1-1/fs; -//s = 2*sin(2*%pi*25*t)+sin(2*%pi*35*t); -//[S,w]=peig(s,2,512,fs,'half'); -//n=length(S); -// -//for i=1:n +// fs = 100; +// t = 0:1/fs:1-1/fs; +// s = 2*sin(2*%pi*25*t)+sin(2*%pi*35*t); +// [S,w]=peig(s,2,512,fs,'half'); +// n=length(S); + +// for i=1:n // S(i)=round((S(i)*10^7)/10^7); // end -// -// -//M=fscanfMat("macros/text4_peig.txt"); -//M=roundn(M,7); -//if(M==S ) + + +// M=fscanfMat("macros/text4_peig.txt"); +// M=roundn(M,7); +// if(M==S ) // test_pass=[test_pass 1]; // else // test_pass=[test_pass 0]; // disp("peig test failed"); // end -// + /////////////////test for periodogram /////////////////////////// @@ -93,26 +93,26 @@ end -//////// test case for pmusic.............////////// -//n = 0:199; -//x = cos(0.257*%pi*n) + sin(0.2*%pi*n); -//[S,w]=pmusic(x,2,16,1); -//S=roundn(S,6); -//w=roundn(w,4); -// -//si=[2.6425624,5.7475005, 77.1482210,1.5296243,0.4725347,0.2848481,0.2508128,0.2731036,0.2950648]'; -//si=roundn(si,6); -// -//Wi=[0,0.0625,0.125,0.1875,0.25,0.3125,0.375,0.4375,0.5]'; -//Wi=roundn(Wi,4); -// +//////// test case for pmusic.............////////// Failed with error -> Undefined variable: subspaceMethodsInputParser +// n = 0:199; +// x = cos(0.257*%pi*n) + sin(0.2*%pi*n); +// [S,w]=pmusic(x,2,16,1); +// S=roundn(S,6); +// w=roundn(w,4); + +// si=[2.6425624,5.7475005, 77.1482210,1.5296243,0.4725347,0.2848481,0.2508128,0.2731036,0.2950648]'; +// si=roundn(si,6); + +// Wi=[0,0.0625,0.125,0.1875,0.25,0.3125,0.375,0.4375,0.5]'; +// Wi=roundn(Wi,4); + // if(si==S & w==Wi) // test_pass=[test_pass 1]; // else // test_pass=[test_pass 0]; // disp("pmusic test failed"); // end -// + @@ -815,13 +815,13 @@ end // //////////////////////////////////////////////////// -// res=find(test_pass==0) +res=find(test_pass==0) -// if(res~=[]) -// disp("One or more tests failed in test2") -// test3=1; -// end +if(res~=[]) + disp("One or more tests failed in test2") + test3=1; +end |