% 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
% 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