MATLAB: Doesn’t mp3write work in R2015b but it does in R2013b

MATLABmp3write

When I try to use mp3write in R2015b I get
Error using wavwrite (line 8) WAVWRITE will be removed in a future release. Use AUDIOWRITE instead.
Error in mp3write (line 53) wavwrite(Y,FS,NBITS,strcat(lame,'\temp.wav'));
I can always go back to R2013b because I luckily kept it but I would prefer to use the latest versions. Is there a mod available that will solve this problem? Thanks.

Best Answer

mp3write() is a File Exchange Contribution. Or maybe it is this other contribution. Either way it is not part of MATLAB.
You can adapt the source of whichever one you are using to use audiowrite() . It should be a minor change.