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 CenterFile Exchange에서 Audio and Video Data에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by