summaryrefslogtreecommitdiff
path: root/etfeeTest.sce
diff options
context:
space:
mode:
authorttt2018-07-09 16:54:44 +0530
committerttt2018-07-09 16:54:44 +0530
commite5e316e1958e27696d7670e2492992d34ff38b68 (patch)
tree8dab5cc24e31921cfb3c44444d48cfbfd3ff76f8 /etfeeTest.sce
parent681c88404f9f2861d228d0d0c3bd61b200ca1442 (diff)
downloadFOSSEE-System-Identification-Toolbox-e5e316e1958e27696d7670e2492992d34ff38b68.tar.gz
FOSSEE-System-Identification-Toolbox-e5e316e1958e27696d7670e2492992d34ff38b68.tar.bz2
FOSSEE-System-Identification-Toolbox-e5e316e1958e27696d7670e2492992d34ff38b68.zip
added scilabs files
Diffstat (limited to 'etfeeTest.sce')
-rw-r--r--etfeeTest.sce13
1 files changed, 13 insertions, 0 deletions
diff --git a/etfeeTest.sce b/etfeeTest.sce
new file mode 100644
index 0000000..46f250c
--- /dev/null
+++ b/etfeeTest.sce
@@ -0,0 +1,13 @@
+loadmatfile('rData.mat')
+z = [fft(data1(:,1)),fft(data1(:,2))]
+z = z/size(z,'r')
+magData1 = abs(z(:,1));magData2 = abs(z(:,2))
+argData1 = phasemag(z(:,1),'m');argData2 = phasemag(z(:,2),'m')
+magData = magData1./magData2;argData = argData1-argData2
+argData = [cosd(argData) sind(argData)]
+data = [magData.*argData(:,1) magData.*argData(:,2)]
+output = data(:,1)+%i*data(:,2)
+resp = output(1:ceil(length(output)/2))
+frq = (1: ceil(256/2)) * %pi/floor(256/2)
+output = frd(frq,resp,1)
+disp(output)