]> git.parisson.com Git - cnaq.git/commitdiff
Manu
authoryomguy <yomguy@5fc3e0e6-29bc-4d03-b52b-c088cb822bde>
Fri, 16 Nov 2007 17:18:17 +0000 (17:18 +0000)
committeryomguy <yomguy@5fc3e0e6-29bc-4d03-b52b-c088cb822bde>
Fri, 16 Nov 2007 17:18:17 +0000 (17:18 +0000)
git-svn-id: http://svn.parisson.org/svn/CNAQ/trunk@117 5fc3e0e6-29bc-4d03-b52b-c088cb822bde

tools/plot_impedance.m

index d6296119783764c52ec1687ec2638761b87d2141..cd0934146d8ea30bdcbfa63964b670826573cc85 100644 (file)
@@ -1,7 +1,7 @@
 % Loudspeaker impedance post-processing from a 2 voice acquisition from CNAQ\r
 % Copyright (C) Guillaume Pellerin\r
 \r
-function plot_impedance(fic_resitance, fic_hp, R_c, option)\r
+function plot_impedance(fic_mes, R_c, option)\r
 \r
 % fic_resistance : the (CNAQ) MAT file containing the transfert function of the\r
 % resistance\r
@@ -11,12 +11,10 @@ function plot_impedance(fic_resitance, fic_hp, R_c, option)
 % option : 'lin' or 'log' to plot the frequency with a linear or\r
 % logarithmic scale respectively\r
 \r
-load(fic_resitance);\r
+load(fic_mes);\r
 U_r = sig_mes(:,1);\r
 I_r = sig_mes(:,1)/R_c;\r
-\r
-load(fic_hp);\r
-U_hp = sig_mes(:,1)-U_r;\r
+U_hp = sig_mes(:,2)-U_r;\r
 \r
 %i = sig_mes(:,1);\r
 %u = sig_mes(:,2);\r