]> git.parisson.com Git - cnaq.git/commitdiff
* Add main analysing function
authoryomguy <yomguy@5fc3e0e6-29bc-4d03-b52b-c088cb822bde>
Fri, 4 Apr 2008 11:58:28 +0000 (11:58 +0000)
committeryomguy <yomguy@5fc3e0e6-29bc-4d03-b52b-c088cb822bde>
Fri, 4 Apr 2008 11:58:28 +0000 (11:58 +0000)
git-svn-id: http://svn.parisson.org/svn/CNAQ/trunk@162 5fc3e0e6-29bc-4d03-b52b-c088cb822bde

tools/get_ri_spec.m [new file with mode: 0644]

diff --git a/tools/get_ri_spec.m b/tools/get_ri_spec.m
new file mode 100644 (file)
index 0000000..51cb847
--- /dev/null
@@ -0,0 +1,12 @@
+function [ri, spec] = get_spec_ri(f, sig_exc, sig_exc, f_s)
+% Return the impulse response and the spectrum compute with the given method
+
+    if mes_type == 1
+        % Frequency method
+        [rep_imp_exc, spec_exc] = fonc_trans(f, sig_exc, sig_exc);
+    elseif mes_type == 2
+        % Temporal method
+        [rep_imp_exc, spec_exc] = RI_FT(f, sig_exc, sig_exc, f_s);
+    end
+
+end
\ No newline at end of file