I'm building an app using the guide function in matlab and would like to include a music file as part of my app. I know that one way to do this is to use a .mat file, how do I convert an .mp3 file to a .mat file? or is there a better way to include an audio file into a GUI?
No products are associated with this question.
[y,fs]=audioread('youfile.mp3');
save new_file y fs
% to listen to the music type
sound(y,fs)
when I try to use the audioread function matlab says it cant find the function.
0 Comments