\r
% Author: Guillaume Pellerin <guillaume.pellerin@cnam.fr>\r
\r
-% Last Modified by GUIDE v2.5 21-Nov-2008 10:49:08\r
+% Last Modified by GUIDE v2.5 21-Nov-2008 11:36:46
\r
% CNAQ, by itself, creates a new CNAQ or raises the existing\r
% singleton*.\r
end\r
\r
\r
+
+
+
+function r_c_Callback(hObject, eventdata, handles)
+% hObject handle to r_c (see GCBO)
+% eventdata reserved - to be defined in a future version of MATLAB
+% handles structure with handles and user data (see GUIDATA)
+
+% Hints: get(hObject,'String') returns contents of r_c as text
+% str2double(get(hObject,'String')) returns contents of r_c as a double
+
+
+% --- Executes during object creation, after setting all properties.
+function r_c_CreateFcn(hObject, eventdata, handles)
+% hObject handle to r_c (see GCBO)
+% eventdata reserved - to be defined in a future version of MATLAB
+% handles empty - handles not created until after all CreateFcns called
+
+% Hint: edit controls usually have a white background on Windows.
+% See ISPC and COMPUTER.
+if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
+ set(hObject,'BackgroundColor','white');
+end
+
+
axis([f_min f_max min(spec_mes_log(f_min_ind:f_max_ind-1000))-6 max(spec_mes_log(f_min_ind:f_max_ind))+6]);\r
xlabel('Frequency (Hz)');\r
ylabel('Amplitude (dB)');\r
- title(['Modulus of the transfer function (group: ' group ', id: ' id ', channel : ' channel ')']);\r
+ title(['Modulus of the transfer function (group: ' group ', id: ' id ', channel : ' channel ', comment :' comment ')']);\r
grid on;\r
\r
subplot(2,1,2);\r
grid on;\r
xlabel('Frequency (Hz)');\r
ylabel('Phasis (rad)');\r
- title(['Phasis of the transfer function (group: ' group ', id: ' id ', channel : ' channel ')']);\r
+ title(['Phasis of the transfer function (group: ' group ', id: ' id ', channel : ' channel ', comment :' comment ')']);\r
\r
elseif domain == 2\r
% Time\r
%axis([1 t(length(t)) min(sig_mes)-0.01 max(sig_mes)+0.01]);\r
xlabel('Time (s)');\r
ylabel('Amplitude');\r
- title(['Measured temporal signal (group: ' group ', id: ' id ', channel : ' channel ')']);\r
+ title(['Measured temporal signal (group: ' group ', id: ' id ', channel : ' channel ', comment :' comment ')']);\r
grid on;\r
\r
subplot(2,1,2);\r
axis([-t_ri(len_ri) t_ri(len_ri) min(rep_imp_mes)-0.01 max(rep_imp_mes)+0.01]);\r
xlabel('Time (s)');\r
ylabel('Amplitude');\r
- title(['Measured impulse response (group: ' group ', id: ' id ', channel : ' channel ')']);\r
+ title(['Measured impulse response (group: ' group ', id: ' id ', channel : ' channel ', comment :' comment ')']);\r
grid on;\r
\r
\r
gain_out = get(handles.gain_out,'Value');
% Save it
- file = [home_dir '\' username '_' id '.mat'];
+ file = [home_dir '\' username '_' id '_' comment '.mat'];
save(file);
% Clear big data