編寫(xiě)具有如下函數(shù)原型的遞歸與非遞歸兩種函數(shù)equ,負(fù)責(zé)判斷數(shù)組a與b的前n個(gè)元素值是否按下標(biāo)對(duì)應(yīng)完全相同,是則返回true,否則返回false。并編制主函數(shù)對(duì)它們進(jìn)行調(diào)用,以驗(yàn)證其正確性。 bool equ(int a[], int b[], int n) 提示:遞歸函數(shù)中可按如下方式來(lái)分解并處理問(wèn)題,先判斷最后一個(gè)元素是否相同,不同則返false;相同則看n是否等于1,是則返回true,否則進(jìn)行遞歸調(diào)用(傳去實(shí)參a、b與 n-1,去判斷前n-1個(gè)元素的相等性),并返回遞歸調(diào)用的結(jié)果(與前n-1個(gè)元素的是否相等性相同)。
標(biāo)簽: equ 函數(shù) 遞歸 編寫(xiě)
上傳時(shí)間: 2014-01-18
上傳用戶:love1314
主要是關(guān)于TMS320F2812數(shù)字信號(hào)處理器的定時(shí)器T的初始化和設(shè)置的程序。
上傳時(shí)間: 2014-01-01
上傳用戶:李夢(mèng)晗
A novel met hod t o p artially compensate sigma2delta shap ed noise is p rop osed. By injecting t he comp en2 sation cur rent int o t he p assive loop f ilte r during t he delay time of t he p hase f requency detect or ( PFD) , a maximum reduction of t he p hase noise by about 16dB can be achieved. Comp a red t o ot he r compensation met hods , t he tech2 nique p rop osed he re is relatively simple and easy t o implement . Key building blocks f or realizing t he noise cancel2 lation , including t he delay va riable PFD and comp ensation cur rent source , a re sp ecially designed. Bot h t he behavior level and circuit level simulation results a re p resented.
標(biāo)簽: sigma2delta compensate injecting artially
上傳時(shí)間: 2013-12-18
上傳用戶:qlpqlq
TEST測(cè)試上傳...T EST測(cè)試上傳...TEST測(cè)試上傳
上傳時(shí)間: 2017-01-04
上傳用戶:jeffery
ABC_FDTD_Die(T) Implements simulation of a Gaussian Pulse over T time steps. ABC are for free space. If boundaries are in the Dielectric medium then the ABC fail. Dielectric medium begin and end can be specified with the code
標(biāo)簽: ABC_FDTD_Die Implements simulation Gaussian
上傳時(shí)間: 2013-12-22
上傳用戶:caiiicc
ABC_FDTD_Die(T) Implements simulation of a Gaussian Pulse over T time steps. ABC are for free space. If boundaries are in the Dielectric medium then the ABC fail. Dielectric medium begin and end can be specified with the code
標(biāo)簽: ABC_FDTD_Die Implements simulation Gaussian
上傳時(shí)間: 2014-07-27
上傳用戶:LIKE
test1.txt 第一列為時(shí)間t,0.001s為步長(zhǎng);第二列為系統(tǒng)的輸入信號(hào);第三列為系統(tǒng)的輸出信號(hào)。 signal_analyzer.m首先將test1.txt 的數(shù)據(jù)讀入workspace,然后進(jìn)行FFT,分析出兩信號(hào)的頻率,輸出對(duì)于輸入的幅值衰減(db),輸出對(duì)輸入的相位差。
上傳時(shí)間: 2014-01-26
上傳用戶:wcl168881111111
支持DVB-S,DVB-T,DVB-C的系統(tǒng)前端加擾和解擾過(guò)程,請(qǐng)注意加擾與加密不同,本程序包實(shí)現(xiàn)的是純粹的加擾和解擾過(guò)程,不對(duì)KEY進(jìn)行加密傳輸。要求輸入測(cè)試文件時(shí),請(qǐng)按照C語(yǔ)言的文件訪問(wèn)要求輸入,如key.txt表示你要使用的KEY放在了名為key的txt文件中,不可寫(xiě)成“key.txt”。
上傳時(shí)間: 2017-01-10
上傳用戶:SimonQQ
由NI儀器編寫(xiě) 主要關(guān)于設(shè)計(jì)、原型到系統(tǒng)實(shí)現(xiàn)的統(tǒng)一平臺(tái)——圖形化設(shè)計(jì)嵌入式系統(tǒng)
上傳時(shí)間: 2014-01-11
上傳用戶:kikye
電子琴 高音依次為1,2,3,4,5,6,7 中音依次為q,w,e,r,t,y,u 低音依次為a,s,d,f,g,h,j
上傳時(shí)間: 2017-01-14
上傳用戶:fnhhs
蟲(chóng)蟲(chóng)下載站版權(quán)所有 京ICP備2021023401號(hào)-1