I want to play music in my Matlab game, how can I play one?
조회 수: 4 (최근 30일)
이전 댓글 표시
Mauricio García Garza
2019년 11월 12일
댓글: Mauricio García Garza
2019년 11월 12일
I am looking to put music in a Matlab game using the occasional song I have saved, however I do not have the slightest idea if it is even possible. Could someone solve this big question?
댓글 수: 0
채택된 답변
JESUS DAVID ARIZA ROYETH
2019년 11월 12일
yes, you can do it, try it :
load handel
sound(y,Fs)
you can play a file using the following command :
[y,Fs] = audioread('nombredearchivo.extension')
sound(y,Fs)
추가 답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!