function outData = PCMUQC_Decode inputDatan=lengthinputData;outData=zeros1n8;MM=zeros18;for kk=1n8 MM18=inputData1kk-18+1kk8; 取得8位PCM码 stuednt code task理解PCM编码原理将8位PCM码MM中的二进制段落码转化为十进制数将其值赋
temp=0; for ii=1:8 temp=temp+MM(ii)*2^(8-ii); end
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
outData(1,kk)=temp; %将temp值存入outData数组
end end
原文地址: https://www.cveoy.top/t/topic/fWpB 著作权归作者所有。请勿转载和采集!