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

3 ビュー (過去 30 日間)
Epri Pratiwi
Epri Pratiwi 2020 年 8 月 4 日
コメント済み: Epri Pratiwi 2020 年 8 月 4 日
How to play randomly the selected song from list song box?

採用された回答

Walter Roberson
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 ExchangeAudio and Video Data についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by