I want to play music in my Matlab game, how can I play one?
    5 visualizzazioni (ultimi 30 giorni)
  
       Mostra commenti meno recenti
    
    Mauricio  García Garza
 il 12 Nov 2019
  
    
    
    
    
    Commentato: Mauricio  García Garza
 il 12 Nov 2019
            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 Commenti
Risposta accettata
  JESUS DAVID ARIZA ROYETH
      
 il 12 Nov 2019
        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)
Più risposte (0)
Vedere anche
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

