How to play random song from list box in GUI Matlab?

3 vues (au cours des 30 derniers jours)
Epri Pratiwi
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?

Réponse acceptée

Walter Roberson
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)

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by