Laura - I think that you want to use audioread first as m4AFilename = 'hoi.m4a';
[y,Fs] = audioread(m4AFilename);
and then write it as a wav file using audiowrite as wavFilename = 'hoi.wav';
audio write(wavFilename,y,Fs);
Try the above and see what happens!
Best Answer