drop down return to the first option
Ältere Kommentare anzeigen
Hello, I have created drop down menu using GUI, using {option 1, ......4}
each option play a sound How to go back to first option, "option 1" after the sound ends. I want be always to go back to the first option once the sound ends, or how to rest the drop down menu to the first the option at the top of the menu
value = app.PickASoundDropDown_Black_Sp.Value;
if strcmp(value, 'Click')
clear all ; close all
app.chan_Black_Sp = 0;
elseif strcmp(value, 'Browse a File')
file = uigetfile('*wav','Select Channel 2 Audio File');
end
so, I want to go back to "Click" after I have picked an audio file is done playing.
4 Kommentare
Jan
am 8 Nov. 2018
What does this mean: "go back to the first option"? What is going to where?
Abdullah Andergeery
am 8 Nov. 2018
Jan
am 8 Nov. 2018
Please post the code of the callback. Maybe a screenshot clarifies, what "go to the first option" means.
Abdullah Andergeery
am 8 Nov. 2018
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Audio and Video Data finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!