How to play random song from list box in GUI Matlab?
4 ビュー (過去 30 日間)
古いコメントを表示
How to play randomly the selected song from list song box?

0 件のコメント
採用された回答
Walter Roberson
2020 年 8 月 4 日
songnames = handles.AppropriateListboxName.String;
N = length(songnames);
randomsong = songnames{randi(N)};
and then proceed to play the song.
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Get Started with MATLAB についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!