日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 人工智能 > 循环神经网络 >内容正文

循环神经网络

增量调制原理matlab仿真,增量调制(DM  △M)

發布時間:2024/9/19 循环神经网络 31 豆豆
生活随笔 收集整理的這篇文章主要介紹了 增量调制原理matlab仿真,增量调制(DM  △M) 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

% To generate DM signals with different step sizes, we apply

the

% same signal g(t) as used in the PCM example.

% The MATLAB program ExDM.m applies three step sizes:

% △1=0.2,?△2=2△1, and?△3=4△1.

%?( file name: ExDM.m )

% Example of sampling, quantization, and zero-order hold

clear; clf;

td=0.002;?% original sampling

rate 500 Hz

t=[0:td:1.];?% time interval of 1 second

xsig=sin(2*pi*t)-sin(6*pi*t);?%

1Hz+3Hz sinusoids

Lsig=length(xsig);

ts=0.02;

Nfact=ts/td;

%?send the signal through a

16-level uniform quantizer

Delta=0.2;?% First select a small Delta=0.2 in

DM

s_DMout1=deltamod(xsig,Delta,td,ts);

%?obtained the DM signal

%?plot the original signal and

the DM signal in time domain

figure(1);

subplot(311); sfig1=plot(t,xsig,'r',t,s_DMout1(1:Lsig),'b');

set(sfig1,'Linewidth',2);

title(' Signal {\it g}({\it t}) and DM signal ')

xlabel('time (sec.)'); axis([0 1 -2.2 2.2]);

ylabel('△1=0.2');

%

%?Apply DM again by doubling

the Delta

Delta2=2*Delta;

s_DMout2=deltamod(xsig,Delta2,td,ts);

%?obtained the DM signal

%?plot the original signal and

the DM signal in time domain

subplot(312); sfig2=plot(t,xsig,'r',t,s_DMout2(1:Lsig),'b');

set(sfig2,'Linewidth',2);

title(' Signal {\it g}({\it t}) and DM signal with doubled

stepsize')

xlabel('time (sec.)'); axis([0 1 -2.2 2.2]);

ylabel('△2=2△1');

%

Delta3=2*Delta2;?% Double the DM Delta again

s_DMout3=deltamod(xsig,Delta3,td,ts);

%?obtained the DM signal

%?plot the original signal and

the DM signal in time domain

subplot(313); sfig3=plot(t,xsig,'r',t,s_DMout3(1:Lsig),'b');

set(sfig3,'Linewidth',2);

title(' Signal {\it g}({\it t}) and DM signal with quadrupled

stepsize')

xlabel('time (sec.)'); axis([0 1 -2.2 2.2]); ylabel('△3=4△1');

%

-------------------------------------------------------------

%?程序調用函數

%

-------------------------------------------------------------

% Delta Modulation

% We illustrate the practical effect of stepsize selection △

% in the design of DM encoder. The basic function to

% implement DM is given deltamod.m.

% ( file name: deltamod.m )

function s_DMout= deltamod(sig_in,Delta,td,ts)

%?Usage

%?s_DMout = deltamod(xsig,Delta,td,ts)

%?Delta - DM stepsize

%?sig_in - input signal

vector

%?td - original signal sampling

period of sig_in

%?ts - new sampling

period

% NOTE: td*fs must be a positive integer;

%?Function outputs:

%?s_DNout - DM sampled output

if (rem(ts/td,1)==0)

nfac=round(ts/td);

p_zoh=ones(1,nfac);

s_down=downsample(sig_in,nfac);

Num_it=length(s_down);

s_DMout(1)=-Delta/2;

for

k=2:Num_it

xvar=s_DMout(k-1);

s_DMout(k)=xvar+Delta*sign(s_down(k-1)-xvar);

end

s_DMout=kron(s_DMout,p_zoh);

else

warning('error! ts/td is not an integer!');

s_DMout=[];

end

end

%

-------------------------------------------------------------------------------------

% 參考文獻

% B.P.拉茲,丁峙. 現代數字與模擬通信系統[M]. 第4版. 北京:電子工業出版社,2011:368-371

總結

以上是生活随笔為你收集整理的增量调制原理matlab仿真,增量调制(DM  △M)的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。