修改mp3read和mp3write文件内容:
To make them work, you also need to make small changes to the mp3read.m and mp3write.m scripts. First, you must change the location that the script looks for binaries e.g. change the lines:
%%%%%% Location of the binaries
mpg123 = ‘/usr/bin/mpg123’; % for mp3read
mp3info = ‘/usr/bin/mp3info’; % for mp3read
lame = ‘/usr/bin/lame’; % for mp3write
to point to the directory where you put the binaries above, e.g.
mpg123 = ‘C:/Matlab6p5/work/project/mpg123.exe’;
mp3info = ‘C:/Matlab6p5/work/project/mp3info.exe’;
lame = ‘C:/Matlab6p5/work/project/lame.exe’;
Secondly, you must also change the directory where temporary files are written, and the command used to delete them, e.g.:
%%%%%% Directory for temporary file (if needed)
tmpdir = ‘/tmp/’;
%%%%%% Command to delete temporary file (if needed)
rmcmd = ‘rm’;
.. to be a suitable directory for temporary files on your system and the appropriate command to delete them, e.g.
tmpdir = ‘C:/Matlab6p5/work/project/tmp/’; % don’t forget trailing slash
rmcmd = ‘del’;
今天的文章matlab mp3write,mp3read and mp3write for matlab | 学步园分享到此就结束了,感谢您的阅读,如果确实帮到您,您可以动动手指转发给其他人。
版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 举报,一经查实,本站将立刻删除。
如需转载请保留出处:https://bianchenghao.cn/26722.html