(五)測(cè)試數(shù)據(jù):n=0 n=-1 n=2 a 1 2 a 2 3 a 3 4 d 3 5 n=2 a 1 5 a 2 10 d 1 15 a 3 20 a 4 25 a 5 30 d 2 35 d 4 40 e 0 0 (六)測(cè)試結(jié)果:error error 沒(méi)付錢(qián),沒(méi)停就走了 第一輛車(chē)付50元 第二輛車(chē)付125元 第三輛車(chē)沒(méi)出來(lái) 第四輛車(chē)付25元 第五輛車(chē)沒(méi)進(jìn)入
標(biāo)簽: 10 15 20 測(cè)試數(shù)據(jù)
上傳時(shí)間: 2014-02-08
上傳用戶(hù):wfeel
替代加密: A B C D E F G H I J K L M N O P Q R S T U V W 密文 Y Z D M R N H X J L I O Q U W A C B E G F K P 明文 X Y Z T S V I HAVE A DREAM!# 密文?? 用ARM編程實(shí)現(xiàn)替代加密。
標(biāo)簽: 加密
上傳時(shí)間: 2016-07-17
上傳用戶(hù):qq521
數(shù)字基帶傳輸系統(tǒng)的MATLAB仿真實(shí)現(xiàn) function [sampl,re_sampl]=system_1(A,F,P,D,snr,m,N) 輸入變量A ,F,P分別為輸入信號(hào)的幅度、頻率和相位,D為量化電平數(shù),snr 為信道信噪比,N為D/A轉(zhuǎn)換時(shí)的內(nèi)插點(diǎn)數(shù);輸出變量sampl為抽樣后的輸入 信號(hào),re_sampl為恢復(fù)出的輸入信號(hào)。 數(shù)字基帶傳輸系統(tǒng)的MATLAB仿真實(shí)現(xiàn) [sampl,quant,pcm]=a_d_1(A,F,P,D) [changed_ami]=signal_encod_1(pcm) [ami_after_channel]=channel_1(changed_ami,snr) [adjudged_ami]=adjudg_1(ami_after_channel,m) re_pcm=signal_decod_1(adjudged_ami) [re_voltag,re_sampl,re_sampl1]=d_a_1(re_pcm,sampl,D,N)
標(biāo)簽: function re_sampl MATLAB system
上傳時(shí)間: 2017-04-21
上傳用戶(hù):tzl1975
溫度華氏轉(zhuǎn)變攝氏 #include <stdio.h> #include <stdlib.h> enum x {A,B,C,D,E} int main(void) { int a=73,b=85,c=66 { if (a>=90) printf("a=A等級(jí)!!\n") else if (a>=80) printf("73分=B等級(jí)!!\n") else if (a>=70) printf("73分=C等級(jí)!!\n") else if (a>=60) printf("73分=D等級(jí)!!\n") else if (a<60) printf("73分=E等級(jí)!!\n") } { if (b>=90) printf("b=A等級(jí)!!\n") else if (b>=80) printf("85分=B等級(jí)!!\n") else if (b>=70) printf("85分=C等級(jí)!!\n") else if (b>=60) printf("85分=D等級(jí)!!\n") else if (b<60) printf("85分=E等級(jí)!!\n") } { if (c>=90) printf("c=A等級(jí)!!\n") else if (c>=80) printf("66分=B等級(jí)!!\n") else if (c>=70) printf("66分=C等級(jí)!!\n") else if (c>=60) printf("66分=D等級(jí)!!\n") else if (c<60) printf("66分=E等級(jí)!!\n") } system("pause") return 0 }
標(biāo)簽: include stdlib stdio gt
上傳時(shí)間: 2014-11-10
上傳用戶(hù):wpwpwlxwlx
溫度華氏轉(zhuǎn)變攝氏 #include <stdio.h> #include <stdlib.h> enum x {A,B,C,D,E} int main(void) { int a=73,b=85,c=66 { if (a>=90) printf("a=A等級(jí)!!\n") else if (a>=80) printf("73分=B等級(jí)!!\n") else if (a>=70) printf("73分=C等級(jí)!!\n") else if (a>=60) printf("73分=D等級(jí)!!\n") else if (a<60) printf("73分=E等級(jí)!!\n") } { if (b>=90) printf("b=A等級(jí)!!\n") else if (b>=80) printf("85分=B等級(jí)!!\n") else if (b>=70) printf("85分=C等級(jí)!!\n") else if (b>=60) printf("85分=D等級(jí)!!\n") else if (b<60) printf("85分=E等級(jí)!!\n") } { if (c>=90) printf("c=A等級(jí)!!\n") else if (c>=80) printf("66分=B等級(jí)!!\n") else if (c>=70) printf("66分=C等級(jí)!!\n") else if (c>=60) printf("66分=D等級(jí)!!\n") else if (c<60) printf("66分=E等級(jí)!!\n") } system("pause") return 0 }
標(biāo)簽: include stdlib stdio gt
上傳時(shí)間: 2013-12-12
上傳用戶(hù):亞亞娟娟123
2的16次冪正整數(shù)d與n,編寫(xiě)計(jì)算d-1 (mod n) 的程序; 2、對(duì)于三個(gè)不超過(guò)2的16次冪正整數(shù)a、e與n,編寫(xiě)計(jì)算ae (mod n) 的程序。 在上述程序基礎(chǔ)上寫(xiě)出下列程序: (1) 對(duì)給定的10000以?xún)?nèi)數(shù)判定其是否為素?cái)?shù); (2) 進(jìn)行ElGamal體制的加密與簽名。
上傳時(shí)間: 2013-12-25
上傳用戶(hù):stvnash
% EM algorithm for k multidimensional Gaussian mixture estimation % % Inputs: % X(n,d) - input data, n=number of observations, d=dimension of variable % k - maximum number of Gaussian components allowed % ltol - percentage of the log likelihood difference between 2 iterations ([] for none) % maxiter - maximum number of iteration allowed ([] for none) % pflag - 1 for plotting GM for 1D or 2D cases only, 0 otherwise ([] for none) % Init - structure of initial W, M, V: Init.W, Init.M, Init.V ([] for none) % % Ouputs: % W(1,k) - estimated weights of GM % M(d,k) - estimated mean vectors of GM % V(d,d,k) - estimated covariance matrices of GM % L - log likelihood of estimates %
標(biāo)簽: multidimensional estimation algorithm Gaussian
上傳時(shí)間: 2013-12-03
上傳用戶(hù):我們的船長(zhǎng)
具備處理外部模擬信號(hào)功能是很多電子設(shè)備的基本要求。為了將模擬信號(hào)轉(zhuǎn)換為數(shù)字信 號(hào),就需要藉助A/D 轉(zhuǎn)換器。將A/D 功能和MCU 整合在一起,就可減少電路的元件數(shù)量和 電路板的空間使用。 HT45F23 微控制器內(nèi)建6 通道,12 位解析度的A/D 轉(zhuǎn)換器。在本應(yīng)用說(shuō)明中,將介紹如何 使用HT45F23 微控制器的A/D 功能。
上傳時(shí)間: 2013-10-27
上傳用戶(hù):nostopper
盒維數(shù)MATLAB計(jì)算程序。%根據(jù)計(jì)盒維數(shù)原理編寫(xiě)了求一維曲線分形維數(shù)的matlab程序 function D=FractalDim(y,cellmax) %求輸入一維信號(hào)的計(jì)盒分形維數(shù) %y是一維信號(hào) %cellmax:方格子的最大邊長(zhǎng),可以取2的偶數(shù)次冪次(1,2,4,8...),取大于數(shù)據(jù)長(zhǎng)度的偶數(shù) %D是y的計(jì)盒維數(shù)(一般情況下D>=1),D=lim(log(N(e))/log(k/e)),
標(biāo)簽: FractalDim function cellmax MATLAB
上傳時(shí)間: 2015-04-23
上傳用戶(hù):liuchee
假定已經(jīng)有許多應(yīng)用采用了程序1 - 1 5中所定義的C u r r e n c y類(lèi),現(xiàn)在我們想要對(duì)C u r r e n c y類(lèi) 的描述進(jìn)行修改,使其應(yīng)用頻率最高的兩個(gè)函數(shù)A d d和I n c r e m e n t可以運(yùn)行得更快,從而提高應(yīng) 用程序的執(zhí)行速度。由于用戶(hù)僅能通過(guò)p u b l i c部分所提供的接口與C u r r e n c y類(lèi)進(jìn)行交互,
上傳時(shí)間: 2015-10-11
上傳用戶(hù):BIBI
蟲(chóng)蟲(chóng)下載站版權(quán)所有 京ICP備2021023401號(hào)-1