How to play random song from list box in GUI Matlab?
2 views (last 30 days)
Show older comments
Epri Pratiwi
on 4 Aug 2020
Commented: Epri Pratiwi
on 4 Aug 2020
How to play randomly the selected song from list song box?
0 Comments
Accepted Answer
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)
See Also
Categories
Find more on Get Started with MATLAB in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!