【正文】
不同的窗體 ?菜單中將包含什么命令 ?要不要使用工具欄重復菜單的功能 ?提供什么對話框與用戶交互 ?需要提供什么樣的幫助 ?界面設(shè)計也需要考慮應用程序的目的是什么 !預期的用戶是誰等問題 .經(jīng)常使用的應用程序和偶爾使用的輔助程序要區(qū)別對待 ,用來顯示信息的應用程序與用來收集信息的應用程序也應有所不同 .目標是針對初學者的應用程序 ,界面設(shè)計要求簡單明了 ,而針對 有經(jīng)驗用戶卻可以復雜一些 。 ( a)采樣信號 x1 遼寧 科技大學畢業(yè)設(shè)計(論文) 第 6 頁 ( b)離散時間傅立葉變換 X1 圖 Ts=,采樣信號和離散時間傅立葉變換 3)Ts= 時 , ()aXt的采樣信號及其傅立葉變換圖形 .因為 Ts=,則fs=1Ts=2021Hz2fmax,采樣頻率小于模擬信號最高頻率的 2 倍 ,不滿足抽樣定理 .其它條件 L=P=5ms,Wmax=2P(6000),K= x2 及其傅立葉變換 X2 如圖 所示 (a)采樣信號 X2 (b)離散時間傅立葉變換 X2 圖 Ts=,采樣信號和離散時間傅立葉變換 遼寧 科技大學畢業(yè)設(shè)計(論文) 第 7 頁 本章 小 結(jié) 圖 ~ 利用了相同的坐標 。 . 模擬信號 實現(xiàn) 1)模擬信號及其傅立葉變換圖形 [2].取 1000() taX t e?? ,用 MATLAB 編程畫出的()aXt和 ()aXt的傅立葉變換 ()aXj? 圖形如圖 1 所示 .程序中利用了 5e? ≈0,并取L=P=5ms,時間間隔為 。設(shè)的頻率范圍為 (Wmax,Wmax) ,取頻率間隔為 WmaxK , K 為常數(shù),根據(jù)實際情況來選擇,則正頻率點為 0, WmaxK, 2WmaxK, kWmaxK, KWmaxK。本文中 ,xa(t) 選用雙 指數(shù)函數(shù), L= P 。 遼寧 科技大學畢業(yè)設(shè)計(論文) 第 3 頁 第 2章 抽樣信號 抽樣信號 原理 設(shè) Xa(t)是連續(xù)時間信號 ,Xa(t) 的傅立葉變換為: X a ( j ) = [ X a ( t) ] = ( )jX a t e td t??? ? () 設(shè) p(t) 為周期沖激脈沖信號 , Ts 為采樣周期 , ( ) ( )nP t t nTs???? ?? () 以 ?()Xat 表示采樣輸出 , 則: ? ( ) ( ) ( )nX a t X a t t n Ts??? ????? () 根據(jù)傅立葉變換性質(zhì) ,采樣信號 ?()Xat 的傅立葉變換為 ?( ) 1 / 2 [ ( ) ( ) ]Xa j Xa j P j?? ? ? ? ? () 其中 P(jΩ) 為 ()pt 的傅立葉變換 , 因此 , ? ( ) 1 / [ ( ) 2 / ) ]nX a j T X a j jn T??? ? ?? ? ? ?? () 從 () 式我們又可得到 ? ( ) ( ) ( ) ( ) ( )nnX a t X a t t n Ts X a n Ts t n Ts????? ? ? ? ? ?? ? ? ??? () 采樣信號 ?()Xat 的傅立葉變換的另一種表示形式為 ? ?? ( ) [ ( ) ] ( ) [ ( ) ( ) ]jjnX a j X a t X a t e d t X a n T t n T s e d t????? ? ? ? ?? ? ? ? ? ? ?? ? ? ? ???? ( ) ( ) ( )j j T snnX a n Ts t n Ts e d t X a n Ts e???? ? ? ? ???? ? ? ? ? ?? ? ???? () 上式 說明采樣后的信號頻譜是采樣之前信號頻譜以整數(shù)倍采樣頻率的平移然后疊加形成的。抽樣定理在生活中的用途是很廣泛的,很簡單的一個例子就是一個工廠需要對一批產(chǎn)品進行質(zhì)量檢查,產(chǎn)品很多,不可能也不需要一個一個檢查,只要從中抽一些就可以,如果達到合格率,那么所有的產(chǎn)品就都合格。首先介紹遼寧 科技大學畢業(yè)設(shè)計(論文) 第 2 頁 一下什么是抽樣定理,先給一個概念上的理解。 ( 3) 強大而智能化的作圖功能。 MATLAB 集科學計算、圖像處理、聲音處理于一身,是 一個高度的集成系統(tǒng),有良好的用戶界面,并有良好的幫助功能。 24 參考文獻 20 程序框圖 11 分析控制系統(tǒng)建模 8 圖形用戶界面設(shè)計過程 5 本章小結(jié) 1 MATLAB 語言的特點 simulation 遼寧 科技大學畢業(yè)設(shè)計(論文) 第 III 頁 目錄 摘要 通過編寫程序來完成用戶界面上各個按鈕的功能,通過 MATLAB 軟件中的信號分析的方法來驗證抽樣定理的正確性。目的在于能夠熟練的應用 MATLAB 軟件來建立友好的用戶界面,通過界面來顯示原始信號、抽樣信號以及恢復后仿真的信號。 關(guān)鍵詞 MATLAB; 抽樣定理 ; 仿真 遼寧 科技大學畢業(yè)設(shè)計(論文) 第 II 頁 Abstract The design is to use MATLAB programming to achieve sampling theorem and its signal the resumption of the simulation and be able to establish the graphical user interface displayed on the corresponding simulation results. The aim is to skillfully use MATLAB software to create a friendly user interface, through the interface to display the original signal, the sampling signal and the restoration of the signal after the simulation. Through the preparation process to plete the user interface on the various button func tions, through the MATLAB software in signal analysis methods to verify the accuracy of sampling theorem. Papers including the use of MATLAB language programming graphical user interface of knowledge, how to create a new graphical user interface, how to add all kinds of controls, how to change the control of various attributes, how to make through the preparation process so that all kinds of controls to achieve the corresponding The functions and so on, through the study of the MATLAB software to create a plete sampling theorem graphical user interface, users can use the mouse or keyboard to plete the analog signal sampling theorem and the restoration of the entire process, the paper introduced by MATLAB language usage and the basic signal analysis method, the user can select a different wave to achieve the appropriate sampling theory and in the graphical user interface displayed on the corresponding waveform, in the form user interface, through the restoration of the original signal and the signal and Simulation The contrast can be drawn to the conclusion sampling theorem. To verify the accuracy of sampling. Keywords MATLAB; sample theory。 9 對象屬性編輯器 10 算法實現(xiàn) 11 信號恢復設(shè) 計 19 概述 MATLAB 的基本數(shù)據(jù)單位是矩陣,它提供了各種矩陣的運算與操作,并有較強的繪圖功能。 ( 2) 人機界面友好,編程效率高。 MATLAB產(chǎn)品主要的應用領(lǐng)域 ( 1) 仿真和建模 ( 2) 實時仿真 ( 3) 自動控制 ( 4) 信號處理與通信 ( 5) 數(shù)據(jù)分析 /科學計算 ( 6) 算法開發(fā) ( 7) 圖形和可視化法 ( 8) 獨立應用開發(fā) ( 9) 其他領(lǐng)域 抽樣定理簡介 本次畢業(yè)設(shè)計我所做的題目是有關(guān)于信號處理中的信號的抽樣定理。當采樣頻率大于或等于模擬信號頻譜最高頻率的 2倍時,恢復信號對比原模擬信號沒有產(chǎn)生失真;而采樣頻率小于模擬信號頻譜最高頻率的 2 倍時,恢復信號會產(chǎn)生失真。隨著計算機行業(yè)的飛速發(fā)展,我相信用計算機來模擬信號的一些實驗會越來越多的,給人們帶來的好處也越來越大。 遼寧 科技大學畢業(yè)設(shè)計(論文) 第 4 頁 模擬信號 算法 模擬信號 頻率計算 . 在計算機中模擬信號是無法存儲的 , 但當模擬信號 xa(t) 為有限 (L ≤ t ≤ P , L, P 是正數(shù) ) 時 ,以充分小的時間取 xa(t) 的值,就可得到一根平滑的曲線,用于近似分析。 考慮到頻率 范圍較大 , 需將化分成一定間隔的頻率點。這里以頻率 f 為橫軸 ,不同于文獻 [2]。 2)Ts= 時 ,xa(t)的采樣信號及其傅立葉變換圖形 .從圖 1 可以認為 ,模擬信號的最高頻率 fmax=2kHz,現(xiàn) Ts=,則 fs=1Ts=5000Hz2fmax,采樣頻率大于模擬信號最高頻率的 2 倍 ,滿足抽樣定理 .其它條件 L=P=5ms,Wmax=2P(6000),K=信號 x1 及其傅立葉變換 X1 如圖 所示。當采樣頻率小于模擬信號最高頻率 2 倍時 ,采樣信號的頻譜互相重疊 ,模擬信號不能從采樣信號中還原 .這完全符合抽樣定理 [3].圖 形 是根據(jù)原理用 MATLAB 編程實現(xiàn)的 ,沒有任何的人為介入 , 而且用 MATLAB 編程簡單、快捷 ,得出的結(jié)論非常清晰 。 控件的設(shè)計 在絕大多數(shù)的圖形用戶界面中都包含控件 .控件是圖形對象 ,它與菜單一起用于建立圖形用戶界面 .通過使用各種類型的控件 ,可以建立起操作簡便 ,功能強大的圖形遼寧 科技大學畢業(yè)設(shè)計(論文) 第 10 頁 用戶界面 .MATLAB 提供了 10 種控件對象 :復選框 (Checkboxes)!可編輯文本框(Edi