|
a |
|
b/slider1_Callback.m |
|
|
1 |
|
|
|
2 |
% --- Executes on slider movement. |
|
|
3 |
function slider1_Callback(hObject, eventdata, handles) |
|
|
4 |
% hObject handle to slider1 (see GCBO) |
|
|
5 |
% eventdata reserved - to be defined in a future version of MATLAB |
|
|
6 |
% handles structure with handles and user data (see GUIDATA) |
|
|
7 |
|
|
|
8 |
% Hints: get(hObject,'Value') returns position of slider |
|
|
9 |
% get(hObject,'Min') and get(hObject,'Max') to determine range of slider |
|
|
10 |
|
|
|
11 |
% Update the Threshold based on the new end values of the slider, stops any |
|
|
12 |
% running timers, update box locations |
|
|
13 |
script_update_Threshold_and_display; |
|
|
14 |
|
|
|
15 |
% handles.Bmode is false if the input data is Pulsed Doppler data |
|
|
16 |
if( handles.Bmode ~= true ), |
|
|
17 |
handles.Message_Bar.String = "Slider Deactivated! Not required for pulsed Doppler"; |
|
|
18 |
return; |
|
|
19 |
end |
|
|
20 |
|
|
|
21 |
%Update the Message Bar |
|
|
22 |
handles.Message_Bar.String = 'Adjusting the Threshold for the removing noise'; |
|
|
23 |
|
|
|
24 |
% Update handles structure |
|
|
25 |
guidata(hObject, handles); |
|
|
26 |
|
|
|
27 |
end |