]> git.parisson.com Git - cnaq.git/commitdiff
git-svn-id: http://svn.parisson.org/svn/CNAQ/trunk@167 5fc3e0e6-29bc-4d03-b52b-c088cb...
authoryomguy <yomguy@5fc3e0e6-29bc-4d03-b52b-c088cb822bde>
Fri, 4 Apr 2008 13:09:50 +0000 (13:09 +0000)
committeryomguy <yomguy@5fc3e0e6-29bc-4d03-b52b-c088cb822bde>
Fri, 4 Apr 2008 13:09:50 +0000 (13:09 +0000)
tools/plot_main.m

index d074330fa36a27acb04d92fed89f0f6edb3d96ef..e17f4ce620da69fe13cedc337b3fbcdf5ab49116 100644 (file)
@@ -8,22 +8,20 @@ function plot_main(handles)
     f_min = str2double(get(handles.f_gen_min,'String'));
     f_max = str2double(get(handles.f_gen_max,'String'));
     f_s = get_fs(handles);
+    size_sig_mes = size(sig_mes);
+    n_col_sig_mes = size_sig_mes(2);
     
     % Get infos
     username = get(handles.username,'String');
     comment = get(handles.comment,'String');
     id = get(handles.ID,'String');
     mes_type = get(handles.mes_type,'Value');
-    
+            
     % Compute excitation spectrum    
     [rep_imp_exc, spec_exc] = get_ri_spec(f, sig_exc, sig_exc, f_s, mes_type);
-    
     len_spec_exc = length(spec_exc);
     spec_exc = spec_exc(1:len_spec_exc/2);
     
-    size_sig_mes = size(sig_mes);
-    n_col_sig_mes = size_sig_mes(2);
-    
     % Compute all Ris and specs
     for i=1:n_col_sig_mes
         voice = num2str(i);