1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
| % --- Executes on slider movement.
function slider8_Callback(hObject, eventdata, handles)
M = get(hObject,'Value');
set(handles.text10,'String',num2str(M+1));
function slider8_CreateFcn(hObject, eventdata, handles)
if isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor',[.9 .9 .9]);
end
function slider8_OpeningFcn(hObject, eventdata, handles)
M = varargin{1};
function varargout = slider8_OutputFcn(hObject, eventdata, handles)
varargout{1} = sortie_M;
[M] = slider8(M); |
Partager