How to play random song from list box in GUI Matlab?
3 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Epri Pratiwi
le 4 Août 2020
Commenté : Epri Pratiwi
le 4 Août 2020
How to play randomly the selected song from list song box?
0 commentaires
Réponse acceptée
Walter Roberson
le 4 Août 2020
songnames = handles.AppropriateListboxName.String;
N = length(songnames);
randomsong = songnames{randi(N)};
and then proceed to play the song.
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Audio and Video Data dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!