新手求助,读取wav文件大小时出错。
Ältere Kommentare anzeigen
我想输出一个wav音频文件的大小,
但是出现了问题,不知道怎么解决,
希望各位大佬帮忙看一下,感激不尽,下面是代码:
global file_name;
%guidata(hObject,handles)
file_name=uigetfile({'*.wav'},'Select an Audio File');
fileinfo = dir(file_name);%读取音频文件名
SIZE = fileinfo.bytes;%读取音频字节
Size = SIZE/1024;%转换为大小
出错的地方是
SIZE = fileinfo.bytes;%读取音频字节
提示:等号右侧的输出数目不足,不满足赋值要求。
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu 音频和视频 finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!