91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 3KB
    文件類型: .m
    金幣: 1
    下載: 0 次
    發布日期: 2021-06-12
  • 語言: Matlab
  • 標簽: pcm??matlab??

資源簡介

可運行的程序,很不錯,很適合初學者用。有抽樣量化編碼三個過程。

資源截圖

代碼片段和文件信息

%?Removing?all?variables?functions?and?MEX-files?from?memory?leaving?the
%?workspace?empty.
clear?all


%?Deleting?all?figures?whose?handles?are?not?hidden.
close?all


%?Deleting?all?figures?including?those?with?hidden?handles.
close?all?hidden


%?Clearing?all?input?and?output?from?the?Command?Window?display?giving?us?a?clean?screen.
clc


%?Opening?the?file?‘TEOTH.mp3‘?in?the?read?access?mode.
fid?=?fopen?(‘TEOTH.mp3‘‘r‘);


%?Generating?the?input?signal?‘m(t)‘?by?reading?the?binary?data?in?16?bit
%?integer?format?from?the?specified?file?and?writing?it?into?a?matrix
%?‘m(t)‘.
m?=?fread?(fid‘int16‘);


%?Defining?the?count?for?efficiency.
count?=?8500;


%?Calculating?maximum?value?of?the?input?signal?‘m(t)‘.
Mp?=?max?(m)


%?Setting?number?of?bits?in?a?symbol.
bits?=?8;


%?Defining?the?number?of?levels?of?uniform?quantization.
levels?=?2^bits;


%?Calculating?the?step?size?of?the?quantization.
step_size?=?(2*Mp)/levels


%?Setting?the?sampling?frequency.
%?because?the?audio?signal?has?a?maximum?frequency?of?4K?and?according?to
%?Nyquist?criteria?we?get?the?following?sampling?frequency.
Fs?=?8000;


%?Setting?the?sampling?instant.
Ts?=?1;


%?Setting?the?number?of?samples?to?be?used.
No_Samples?=?(2*Fs)+Ts;


%?Define?the?time?vector?for?the?calculations.
time?=?[1:Fs/64];


%?Calculating?the?bit?rate.
bit_rate?=?8000*bits;

評論

共有 條評論