|
a |
|
b/edit1_CreateFcn.m |
|
|
1 |
% This function decides the value of static text which hold info about |
|
|
2 |
% minimum of Threshold |
|
|
3 |
% --- Executes during object creation, after setting all properties. |
|
|
4 |
function edit1_CreateFcn(hObject, eventdata, handles) |
|
|
5 |
% hObject handle to edit1 (see GCBO) |
|
|
6 |
% eventdata reserved - to be defined in a future version of MATLAB |
|
|
7 |
% handles empty - handles not created until after all CreateFcns called |
|
|
8 |
|
|
|
9 |
% Hint: edit controls usually have a white background on Windows. |
|
|
10 |
% See ISPC and COMPUTER. |
|
|
11 |
if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) |
|
|
12 |
set(hObject,'BackgroundColor','white'); |
|
|
13 |
end |
|
|
14 |
|
|
|
15 |
% This is the default minimum value for the slider |
|
|
16 |
handles.Min_threshold = 50; |
|
|
17 |
set(hObject,'string', floor(handles.Min_threshold)); |
|
|
18 |
|
|
|
19 |
% Update handles structure |
|
|
20 |
guidata(hObject, handles); |
|
|
21 |
end |