九九热最新网址,777奇米四色米奇影院在线播放,国产精品18久久久久久久久久,中文有码视频,亚洲一区在线免费观看,国产91精品在线,婷婷丁香六月天

實(shí)驗(yàn)10 離散信號(hào)的時(shí)域描述與運(yùn)算

上傳人:緣*** 文檔編號(hào):24005127 上傳時(shí)間:2021-06-16 格式:PPT 頁數(shù):33 大?。?15.50KB
收藏 版權(quán)申訴 舉報(bào) 下載
實(shí)驗(yàn)10 離散信號(hào)的時(shí)域描述與運(yùn)算_第1頁
第1頁 / 共33頁
實(shí)驗(yàn)10 離散信號(hào)的時(shí)域描述與運(yùn)算_第2頁
第2頁 / 共33頁
實(shí)驗(yàn)10 離散信號(hào)的時(shí)域描述與運(yùn)算_第3頁
第3頁 / 共33頁

下載文檔到電腦,查找使用更方便

10 積分

下載資源

還剩頁未讀,繼續(xù)閱讀

資源描述:

《實(shí)驗(yàn)10 離散信號(hào)的時(shí)域描述與運(yùn)算》由會(huì)員分享,可在線閱讀,更多相關(guān)《實(shí)驗(yàn)10 離散信號(hào)的時(shí)域描述與運(yùn)算(33頁珍藏版)》請(qǐng)?jiān)谘b配圖網(wǎng)上搜索。

1、實(shí) 驗(yàn) 10 離 散 信 號(hào) 的 時(shí) 域 描 述 與 運(yùn) 算 實(shí) 驗(yàn) 目 的 :1、 掌 握 常 用 時(shí) 域 離 散 信 號(hào) 的 MATLAB表 示 方 法2、 掌 握 離 散 信 號(hào) 的 基 本 運(yùn) 算 , 包 括 信 號(hào) 相 加 與 相乘 , 平 移 , 反 轉(zhuǎn) , 尺 度 變 換 ,卷 積 一 、 離 散 時(shí) 間 信 號(hào) 的 時(shí) 域 描 述 實(shí) 驗(yàn) 原 理 : 1 2 11 20 1 2( ) ( )* ( ) ( ) ( )lim ( ) ( )( ) ( ) ( ) )kkf t f t f t f f t df k f t kf n f k f n k 如 果 令 t=n ,則離

2、散 時(shí) 間 信 號(hào) 是 指 在 離 散 時(shí) 刻 才 有 定 義 的 信 號(hào) ,簡(jiǎn) 稱 離 散 信 號(hào) 或 者 序 列 。 離 散 信 號(hào) 的 繪 制 一 般采 用 stem函 數(shù) , MATLAB只 能 表 示 一 定 時(shí) 間 范圍 內(nèi) 有 限 長(zhǎng) 度 的 序 列 , 而 對(duì) 于 無 限 長(zhǎng) 序 列 , 只能 在 一 定 范 圍 內(nèi) 表 示 出 來 常 用 離 散 信 號(hào) 的 MATLAB表 示1、 單 位 階 躍 信 號(hào) ( )u nfunction f = u(n)f = (n=0 ) ;2、 單 位 沖 激 信 號(hào) ( )nfunction f = delta(n) f = (n=0 )

3、 ; clear allx = -3 :5 ;y1 = u(x) ;y2 = delta(x) ;subplot(2 ,1 ,1 )stem(x,y1 ,fill) ;xlabel(n) ;grid on ;axis(-3 5 -0 .1 1 .1 ) ;subplot(2 ,1 ,2 )stem(x,y2 ,fill) ;xlabel(n) ;grid on ;axis(-3 5 -0 .1 1 .1 ) ; -3 -2 -1 0 1 2 3 4 5 0 0.5 1 n -3 -2 -1 0 1 2 3 4 5 0 0.5 1 n 3、 矩 形 序 列 1,(0 1)( ) ( ) ( )0

4、,( 0, )N n NR n u n u n Nn n N -2 -1 0 1 2 3 4 5 6 7 8 0 0.2 0.4 0.6 0.8 1 n clear allx = -2 :8 ;y = u(x) - u(x-4 ) ;stem(x,y,fill) ;xlabel(n) ;grid onaxis(-2 8 -0 .1 1 .1 ) ; 4、 單 邊 指 數(shù) 序 列 ( ) ( )nf n a u nn = 0 :1 0 ;a1 = 1 .2 ; a2 = -1 .2 ; a3 = 0 .8 ; a4 = -0 .8 ;f1 = a1 .n ; f2 = a2 .n ;f3 = a

5、3 .n ; f4 = a4 .n ;subplot(2 ,2 ,1 )stem(n,f1 ,fill) ;xlabel(n) ;grid on ; 0 5 100 2 4 6 8 n 0 5 10-10 -5 0 5 10 n 0 5 100 0.5 1 n 0 5 10-1 -0.5 0 0.5 1 n 9 從 實(shí) 驗(yàn) 圖 可 知 , 當(dāng) 時(shí) , 單 邊 指 數(shù) 序 列 發(fā) 散 ;1a 1a 當(dāng) 時(shí) , 單 邊 指 數(shù) 序 列 收 斂 ;從 實(shí) 驗(yàn) 圖 可 知 , 當(dāng) 時(shí) , 單 邊 指 數(shù) 序 列 取 正 值 ;0a 0a 當(dāng) 時(shí) , 單 邊 指 數(shù) 序 列 在 正 負(fù) 之 間 擺 動(dòng)

6、5、 正 弦 序 列 0( ) sin( )f n nw clear alln = 0 :3 9 ;f = sin(pi/1 7 *n) ;stem(n,f,fill) ;xlabel(n) ;grid on ;axis(0 4 0 -1 .2 1 .2 ) ; 0 5 10 15 20 25 30 35 40 -1 -0.8 -0.6 -0.4 -0.2 0 0.2 0.4 0.6 0.8 1 n 0 0 ,2,w nw : 為 正 弦 序 列 的 數(shù) 字 域 頻 率: 為 出 相 位與 連 續(xù) 的 正 弦 信 號(hào) 不 同 , 正 弦 序 列 的 自 變 量 必 須 是 整 數(shù)同 時(shí) 只 有

7、 為 有 理 數(shù) 時(shí) , 正 弦 序 列 才 具 有 周 期 性 6、 復(fù) 指 數(shù) 序 列 0( )( ) a jw nf n e n = 0 :3 0 ;A=2 ; a = -0 .1 ; b = pi/5 ;f = A*exp(a+j*b)*n) ;subplot(2 ,2 ,1 ); stem(n,real(f),fill) ; xlabel(n) ; title(實(shí) 部 ) ; grid on ;subplot(2 ,2 ,2 ); stem(n,imag(f),fill) ; xlabel(n) ; title(虛 部 ) ; grid on ;subplot(2 ,2 ,3 );

8、stem(n,abs(f),fill) ; xlabel(n) ; title(模 ) ; grid on ;subplot(2 ,2 ,4 ); stem(n,angle(f),fill) ; xlabel(n) ; title(相 角 ) ; grid on ; 0 10 20 30-2 -1 0 1 2 n 實(shí)部 0 10 20 30-1 0 1 2 n 虛部 0 10 20 300 0.5 1 1.5 2 n 模 0 10 20 30-4 -2 0 2 4 n 相角 二 、 離 散 時(shí) 間 信 號(hào) 基 本 運(yùn) 算 序 列 的 平 移 、 反 轉(zhuǎn)序 列 的 平 移 、 反 轉(zhuǎn) 在 MAT

9、LAB中 的 實(shí) 現(xiàn) 同 連 續(xù)信 號(hào) , 可 以 用 變 量 替 換 來 實(shí) 現(xiàn) , 同 時(shí) 序 列 的 反轉(zhuǎn) 還 可 以 用 MATLAB中 的 函 數(shù) fliplr實(shí) 現(xiàn) 。 12 13 14 2(1) ( ) 0.8 ( ) ( 8);(2) ( ) ( 3);(3) ( ) ( 2);(4) ( ) ( );nx n u n u nx n x nx n x nx n x n 例 1: a = 0 .8 ; N = 8 ;n = -1 2 :1 2 ;f1 = a.n ; f2 = u(n)-u(n-N) ; x1 = f1 .*f2 ;n1 = n ;n2 = n1 -3 ;n3 =

10、 n1 +2 ;n4 = -n1 ;subplot(4 ,1 ,1 )stem(n1 ,x1 ,fill) ; grid on; title(x1 (n) ; axis(-1 5 1 5 0 1 ) ;subplot(4 ,1 ,2 )stem(n2 ,x1 ,fill) ; grid on; title(x2 (n) ; axis(-1 5 1 5 0 1 ) ;subplot(4 ,1 ,3 )stem(n3 ,x1 ,fill) ; grid on; title(x3 (n) ; axis(-1 5 1 5 0 1 ) ;subplot(4 ,1 ,4 )stem(n4 ,x1 ,fil

11、l) ; grid on; title(x4 (n) ; axis(-1 5 1 5 0 1 ) ; -15 -10 -5 0 5 10 15 0 0.5 1 x1(n) -15 -10 -5 0 5 10 15 0 0.5 1 x2(n) -15 -10 -5 0 5 10 15 0 0.5 1 x3(n) -15 -10 -5 0 5 10 15 0 0.5 1 x4(n) n = -1 2 :1 2 ;x1 =x_f(n);x2 =x_f(n+3 );x3 =x_f(n-2 );x4 =x_f(-1 *n);subplot(4 ,1 ,1 ); stem(n,x1 ,filled); g

12、rid on; title(x1 (n) ; axis(-1 5 1 5 0 1 ) ;subplot(4 ,1 ,2 ); stem(n,x2 ,filled) ; grid on; title(x2 (n) ; axis(-1 5 1 5 0 1 ) ;subplot(4 ,1 ,3 ); stem(n,x3 ,filled) ; grid on; title(x3 (n) ; axis(-1 5 1 5 0 1 ) ;subplot(4 ,1 ,4 ); stem(n,x4 ,filled) ; grid on; title(x4 (n) ; axis(-1 5 1 5 0 1 ) ;f

13、unction f = x_f(n)a = 0 .8 ; N = 8 ;f1 = a.n ;f2 = u(n)-u(n-N) ;f = f1 .*f2 ; 序 列 的 尺 度 變 換序 列 的 尺 度 變 換 是 由 序 列 得 到 , 對(duì) 應(yīng) 著抽 取 和 插 值 。 當(dāng) , 每 隔 個(gè) 序 列 值 抽 取 一個(gè) 值 ; 當(dāng) , 每 兩 個(gè) 序 列 值 之 間 插 入 零 值( )f n1a ( )f an 1( 1)a ( 1)a 1a 例 2: 12(1) ( ) sin(2 0.12 )(2) ( ) sin(2 0.12 )3x n nnx n clf ;n = 0 :4 9 ;x

14、= sin(2 *pi*0 .1 2 *n) ;y = zeros(1 ,3 *length(x) ;y(1 :3 :length(y) = x ;利 于 空間 的 利 用subplot(2 ,1 ,1 )stem(n,x,.);subplot(2 ,1 ,2 )m = 0 :3 *length(x)-1 ;stem(m,y,.); 0 5 10 15 20 25 30 35 40 45 50-1 -0.5 0 0.5 1 0 50 100 150-1 -0.5 0 0.5 1 例 3: 12(1) ( ) sin(2 0.042 )(2) ( ) sin(2 0.042 3 )x n nx

15、n n clf ;n = 0 :4 9 ;m = 0 :floor(5 0 /3 ) -1 ;x = sin(2 *pi*0 .0 4 2 *n) ;y = zeros(1 ,length(m) ;y = x(1 :3 :3 *floor(5 0 /3 );%抽 取subplot(2 ,1 ,1 )stem(n,x,.);subplot(2 ,1 ,2 )stem(m,y,.); 0 5 10 15 20 25 30 35 40 45 50-1 -0.5 0 0.5 1 0 5 10 15-1 -0.5 0 0.5 1 序 列 的 相 加 與 相 乘 1 21 21 2 1 2( ) ( )

16、( )( ) ( ) ( )( ) ( )* ( )( ) ( ) ( )f n f n f nf n f n f nf n f n f nf n f n f n 對(duì) 應(yīng) 離 散 樣 點(diǎn) 值 的 加 減 乘 除 , 因 此 與 連 續(xù) 時(shí)間 信 號(hào) 的 數(shù) 值 處 理 方 法 一 致 12(1) ( ) ( ) ( 4)(2) ( ) 2 nx n u n u nx n 例 3: -15 -10 -5 0 5 10 15-0.5 0 0.5 1 1.5 n f1(n) -15 -10 -5 0 5 10 15 0 2 4 6 8 n f2(n) n = -3 :5 ;f1 = u(n) - u

17、(n-4 ) ;f2 = 2 .(-n) ;x1 = f1 + f2 ;x2 = f1 - f2 ;x3 = f1 .*f2 ; -15 -10 -5 0 5 10 15 0 5 10 n x1(n) -15 -10 -5 0 5 10 15 -8 -6 -4 -2 0 n x2(n) -15 -10 -5 0 5 10 15 0 0.5 1 1.5 n x3(n) function f,n = sigmult(f1 ,n1 ,f2 ,n2 )% 序 列 相 乘n = min(min(n1 ),min(n2 ):max(max(n1 ),max(n2 ) ;x1 = zeros(1 ,leng

18、th(n) ;x2 = x1 ;x1 (find(n=min(n1 )f = x1 +x2 ; clfn1 = -5 :5 ;f1 = u(n1 )-u(n1 -4 ) ;n2 = -3 :5 ;f2 = 2 .(-n2 ) ;f3 ,n3 = sigadd(f1 ,n1 ,f2 ,n2 ) ;f4 ,n4 = sigmult(f1 ,n1 ,f2 ,n2 ) ;subplot(2 1 1 )stem(n3 ,f3 ,fill) ;xlabel(n)title(f1 +f2 ) ;subplot(2 1 2 )stem(n4 ,f4 ,fill) ;xlabel(n)title(f1 *f2

19、) ; -5 -4 -3 -2 -1 0 1 2 3 4 50 2 4 6 8 n f1+f2 -5 -4 -3 -2 -1 0 1 2 3 4 50 0.5 1 n f1*f2 序 列 的 卷 積 1 2 1 2( ) ( ) ( ) ( ) ( )if n f i f n i f n f n 直 接 用 conv函 數(shù) 求 解 , 注 意 : 用 MATLAB進(jìn) 行卷 積 和 運(yùn) 算 時(shí) , 無 法 實(shí) 現(xiàn) 無 限 的 累 加 , 只 能計(jì) 算 時(shí) 限 信 號(hào) 的 卷 積 和 , 同 時(shí) 應(yīng) 注 意 序 列 長(zhǎng)度 的 變 化 實(shí) 驗(yàn) 內(nèi) 容 :1、 利 用 MATLAB命 令 畫 出 下

20、列 序 列 的 波 形 圖 (1) (2) (3) (2 0.5 ) ( )n u n3( ) sin( )2 5n n1 cos( ) sin( )4 3 2 4n n 2、 利 用 MATLAB命 令 畫 出 下 列 序 列 的 實(shí) 部 、 虛 部 、模 與 相 角 8 4( )( ) 1.5jn n nj jx n ex n e e 3、 已 知 信 號(hào) , 試用 MALTAB命 令 畫 出 下 列 信 號(hào) 的 波 形 圖 ( 1) ( 2) ( )* (3 2 )f n f n(3 2 )f n ( ) 5*cos(0.41* ) 3*sin(0.37* )f n n n 4、 已 知 LTI系 統(tǒng) 的 單 位 序 列 響 應(yīng) h(n)與 激 勵(lì) x(n)分 別如 圖 所 示 , 求 系 統(tǒng) 的 零 狀 態(tài) 響 應(yīng) 并 繪 出 時(shí) 域 波 形

展開閱讀全文
溫馨提示:
1: 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
2: 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
3.本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
5. 裝配圖網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。

相關(guān)資源

更多
正為您匹配相似的精品文檔
關(guān)于我們 - 網(wǎng)站聲明 - 網(wǎng)站地圖 - 資源地圖 - 友情鏈接 - 網(wǎng)站客服 - 聯(lián)系我們

copyright@ 2023-2025  zhuangpeitu.com 裝配圖網(wǎng)版權(quán)所有   聯(lián)系電話:18123376007

備案號(hào):ICP2024067431號(hào)-1 川公網(wǎng)安備51140202000466號(hào)


本站為文檔C2C交易模式,即用戶上傳的文檔直接被用戶下載,本站只是中間服務(wù)平臺(tái),本站所有文檔下載所得的收益歸上傳人(含作者)所有。裝配圖網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)上載內(nèi)容本身不做任何修改或編輯。若文檔所含內(nèi)容侵犯了您的版權(quán)或隱私,請(qǐng)立即通知裝配圖網(wǎng),我們立即給予刪除!