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

3 visualizzazioni (ultimi 30 giorni)
How to play randomly the selected song from list song box?

Risposta accettata

Walter Roberson
Walter Roberson il 4 Ago 2020
songnames = handles.AppropriateListboxName.String;
N = length(songnames);
randomsong = songnames{randi(N)};
and then proceed to play the song.

Più risposte (0)

Community Treasure Hunt

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

Start Hunting!

Translated by