Clear Filters
Clear Filters

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

2 views (last 30 days)
How to play randomly the selected song from list song box?

Accepted Answer

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

More Answers (0)


Community Treasure Hunt

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

Start Hunting!