tfread.m
资源名称:speech.rar [点击查看]
上传用户:ay_070428
上传日期:2014-12-04
资源大小:11427k
文件大小:0k
源码类别:
语音合成与识别
开发平台:
Matlab
- filename = 'test.bin';
- datatype = 'double';
- x = magic(5).^0.5;
- x1 = x(:);
- fid = fopen(filename, 'wb');
- fwrite(fid, x, datatype);
- fclose(fid);
- fid = fopen(filename, 'r');
- x2 = fread(fid, datatype);
- sum(abs(x1-x2))