A voir également:
- Interface graphique avec matlab
- Changer carte graphique - Guide
- Graphique excel - Guide
- Common interface ✓ - Forum TV & Vidéo
- Common interface (ci card) - Forum TV & Vidéo
- Graphique sparkline - Guide
2 réponses
voici le code de mon button
Code:
% Création de l'objet Start Pushbutton
handles(1) = uicontrol('style','pushbutton',...
'units','normalized',...
'position',[0.05 0.1 0.1 0.05],...
'string','Start',...
'callback',@Start,...
'tag','start');
et voici le code de la fonction de callback
Code:
function Start(hobject,eventdata,handles)
pause(0.1)
% La fonction de callback est éxecutée quand on appuie sur le boutton start
% hObject handle to pushbutton1 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
choice1 = questdlg('Continue?',...
'Start Record ',...
'Yes','No','Yes');
end
Code:
% Création de l'objet Start Pushbutton
handles(1) = uicontrol('style','pushbutton',...
'units','normalized',...
'position',[0.05 0.1 0.1 0.05],...
'string','Start',...
'callback',@Start,...
'tag','start');
et voici le code de la fonction de callback
Code:
function Start(hobject,eventdata,handles)
pause(0.1)
% La fonction de callback est éxecutée quand on appuie sur le boutton start
% hObject handle to pushbutton1 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
choice1 = questdlg('Continue?',...
'Start Record ',...
'Yes','No','Yes');
end