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

1 visualizzazione (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)

Categorie

Scopri di più su Get Started with MATLAB in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by