新手求助,读取wav文件大小时出错。
Show older comments
我想输出一个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;%读取音频字节
提示:等号右侧的输出数目不足,不满足赋值要求。
Accepted Answer
More Answers (0)
Categories
Find more on 音频和视频 in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!