readprocess.asv

来自「wav声音文件的通过多脉冲激励编码器」· ASV 代码 · 共 38 行

ASV
38
字号
function readprocess(file) 

fid=fopen(file,'rb'); 

if(fid==-1) 

display('File not exist!'); 

return; 

end 

array=[]; 
code='1000100';
while(~feof(fid)) 

str=fscanf(fid,'%s',1)
fprintf(fid,'%s',code)

if(length(str)>10) 

%d+00005.00;v+00002.72;e+00002.28;u-0007;m+0761;t+0295; 

col=sscanf(str,'d%f;v%f;e%f;u%f;m%d;t%d;'); 

array=[array col]; 

end 

end 

fclose(fid); 





⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?