How can i set on/off some features of my function?
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Atas Fet
am 9 Mai 2015
Kommentiert: Image Analyst
am 10 Mai 2015
Hi everyone, I would like to describe my problem as follow ;for example i am running main code with pushbutton1 but before that I need to set some features(such as sendmail function) on or off. The reason to want that is get a adjustable Gui by user . I was researching about popup-menu to handle it with but couldnt find a touchable solution Anyone can give me some advice please ? Apriciate to any help Atas
0 Kommentare
Akzeptierte Antwort
Image Analyst
am 9 Mai 2015
I think a radio button or checkbox is more common. For those
chkSendMail = get(handles.chkSendMail, 'Value');
if chkSendMail
% Do stuff
end
radSendMail = get(handles.radSendMail , 'Value');
if radSendMail
% Do stuff
end
For a popup
popSendMail = get(handles.popSendMail , 'Value');
if popSendMail == 3 % Whatever item in the list it is....
% Do stuff
end
4 Kommentare
Image Analyst
am 10 Mai 2015
Yep, my first set of code should work. Just replace your "if true" with an if that checks the value of whatever checkbox or radio button makes sense for that operation.
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Web Services finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!