I am trying to read and play a .wav file but there is always an error that i cannot explain. None of the .wav files that i used worked.
"Error using sound (line 79)
Index exceeds the number of array elements (0).
Error in basico_som (line 5)
Here is the code i'm using: