實驗源代碼 //Warshall.cpp #include<stdio.h> void warshall(int k,int n) { int i , j, t; int temp[20][20]; for(int a=0;a<k;a++) { printf("請輸入矩陣第%d 行元素:",a); for(int b=0;b<n;b++) { scanf ("%d",&temp[a][b]); } } for(i=0;i<k;i++){ for( j=0;j<k;j++){ if(temp[ j][i]==1) { for(t=0;t<n;t++) { temp[ j][t]=temp[i][t]||temp[ j][t]; } } } } printf("可傳遞閉包關(guān)系矩陣是:\n"); for(i=0;i<k;i++) { for( j=0;j<n;j++) { printf("%d", temp[i][ j]); } printf("\n"); } } void main() { printf("利用 Warshall 算法求二元關(guān)系的可傳遞閉包\n"); void warshall(int,int); int k , n; printf("請輸入矩陣的行數(shù) i: "); scanf("%d",&k); 四川大學(xué)實驗報告 printf("請輸入矩陣的列數(shù) j: "); scanf("%d",&n); warshall(k,n); }
上傳時間: 2016-06-27
上傳用戶:梁雪文以
#include "iostream" using namespace std; class Matrix { private: double** A; //矩陣A double *b; //向量b public: int size; Matrix(int ); ~Matrix(); friend double* Dooli(Matrix& ); void Input(); void Disp(); }; Matrix::Matrix(int x) { size=x; //為向量b分配空間并初始化為0 b=new double [x]; for(int j=0;j<x;j++) b[j]=0; //為向量A分配空間并初始化為0 A=new double* [x]; for(int i=0;i<x;i++) A[i]=new double [x]; for(int m=0;m<x;m++) for(int n=0;n<x;n++) A[m][n]=0; } Matrix::~Matrix() { cout<<"正在析構(gòu)中~~~~"<<endl; delete b; for(int i=0;i<size;i++) delete A[i]; delete A; } void Matrix::Disp() { for(int i=0;i<size;i++) { for(int j=0;j<size;j++) cout<<A[i][j]<<" "; cout<<endl; } } void Matrix::Input() { cout<<"請輸入A:"<<endl; for(int i=0;i<size;i++) for(int j=0;j<size;j++){ cout<<"第"<<i+1<<"行"<<"第"<<j+1<<"列:"<<endl; cin>>A[i][j]; } cout<<"請輸入b:"<<endl; for(int j=0;j<size;j++){ cout<<"第"<<j+1<<"個:"<<endl; cin>>b[j]; } } double* Dooli(Matrix& A) { double *Xn=new double [A.size]; Matrix L(A.size),U(A.size); //分別求得U,L的第一行與第一列 for(int i=0;i<A.size;i++) U.A[0][i]=A.A[0][i]; for(int j=1;j<A.size;j++) L.A[j][0]=A.A[j][0]/U.A[0][0]; //分別求得U,L的第r行,第r列 double temp1=0,temp2=0; for(int r=1;r<A.size;r++){ //U for(int i=r;i<A.size;i++){ for(int k=0;k<r-1;k++) temp1=temp1+L.A[r][k]*U.A[k][i]; U.A[r][i]=A.A[r][i]-temp1; } //L for(int i=r+1;i<A.size;i++){ for(int k=0;k<r-1;k++) temp2=temp2+L.A[i][k]*U.A[k][r]; L.A[i][r]=(A.A[i][r]-temp2)/U.A[r][r]; } } cout<<"計算U得:"<<endl; U.Disp(); cout<<"計算L的:"<<endl; L.Disp(); double *Y=new double [A.size]; Y[0]=A.b[0]; for(int i=1;i<A.size;i++ ){ double temp3=0; for(int k=0;k<i-1;k++) temp3=temp3+L.A[i][k]*Y[k]; Y[i]=A.b[i]-temp3; } Xn[A.size-1]=Y[A.size-1]/U.A[A.size-1][A.size-1]; for(int i=A.size-1;i>=0;i--){ double temp4=0; for(int k=i+1;k<A.size;k++) temp4=temp4+U.A[i][k]*Xn[k]; Xn[i]=(Y[i]-temp4)/U.A[i][i]; } return Xn; } int main() { Matrix B(4); B.Input(); double *X; X=Dooli(B); cout<<"~~~~解得:"<<endl; for(int i=0;i<B.size;i++) cout<<"X["<<i<<"]:"<<X[i]<<" "; cout<<endl<<"呵呵呵呵呵"; return 0; }
標簽: 道理特分解法
上傳時間: 2018-05-20
上傳用戶:Aa123456789
本系統(tǒng)以TMS320F2812為核心設(shè)計了一種智能家居裝置——“隨叫隨到”垃圾桶,實現(xiàn)了語音控制垃圾桶的運動。以拾音器作為聲音傳感器,采用延時估計法(Time Delay Estimation,TDE)實現(xiàn)了聲源方位的實時檢測;采用超聲波傳感器實現(xiàn)了垃圾桶行進的蔽障功能;同時,采用語音識別技術(shù)實現(xiàn)了對用戶的前、后、左、右行駛或開啟、關(guān)閉垃圾桶蓋等各種語音指示的識別。從而達到了垃圾桶“隨叫隨到”的智能化、人性化的目的。
標簽: 比賽
上傳時間: 2018-10-17
上傳用戶:cyyyyyy
Before delving into the details of orthogonal frequency division multiplexing (OFDM), relevant background material must be presented first. The purpose of this chapter is to provide the necessary building blocks for the development of OFDM principles. Included in this chapter are reviews of stochastic and random process, discrete-time signals and systems, and the Discrete Fourier Transform (DFT). Tooled with the necessary mathematical foundation, we proceed with an overview of digital communication systems and OFDM communication systems. We conclude the chapter with summaries of the OFDM wireless LAN standards currently in existence and a high-level comparison of single carrier systems versus OFDM.
上傳時間: 2020-05-31
上傳用戶:shancjb
基于TMS320F28335的超聲波流量計硬件原理圖+軟件源碼本文以TMS320F28335 處理器為核心,設(shè)計一種用于管道流量測量的超聲波流量計。系統(tǒng)硬件由核心板,超聲波發(fā)射和接收電路,切換電路,超聲換能器,基于ADS805 的高速信號采集電路,人機交互以及電源等模塊構(gòu)成。采用時差法進行管道流量測量,時差測量采用SCOT 加權(quán)的廣義互相關(guān)時延估計算法。本論文設(shè)計的超聲波流量計具有測量速度快、準確性好、成本低等優(yōu)點。關(guān)鍵字:C2000,超聲波,流量,廣義互相關(guān)算法AbstractA kind of ultrasonic flowmeter using for the pipe flow measurement is designed based onTMS320F28335 in this paper. The system hardware consists of the following parts: the core board,ultrasonic signal transmitter and receiver circuits, switch circuit, ultrasonic transducer, signalacquisition circuit based on ADS805, human-computer interaction module and power supplymodule, etc. The system use the method of time difference for pipeline flow measurement and thetime difference is calculated by the time-delay algorithm of SCOT weighted generalizedcross-correlation. The ultrasonic flowmeter has the features of high testing speed, high precisionand low cost, etc.Keywords: C2000,Ultrasonic, Flow, Generalized Cross-Correlation Algorithm
標簽: tms320f28335 超聲波流量計
上傳時間: 2022-05-06
上傳用戶:
AR0231AT7C00XUEA0-DRBR(RGB濾光)安森美半導(dǎo)體推出采用突破性減少LED閃爍 (LFM)技術(shù)的新的230萬像素CMOS圖像傳感器樣品AR0231AT,為汽車先進駕駛輔助系統(tǒng)(ADAS)應(yīng)用確立了一個新基準。新器件能捕獲1080p高動態(tài)范圍(HDR)視頻,還具備支持汽車安全完整性等級B(ASIL B)的特性。LFM技術(shù)(專利申請中)消除交通信號燈和汽車LED照明的高頻LED閃爍,令交通信號閱讀算法能于所有光照條件下工作。AR0231AT具有1/2.7英寸(6.82 mm)光學(xué)格式和1928(水平) x 1208(垂直)有源像素陣列。它采用最新的3.0微米背照式(BSI)像素及安森美半導(dǎo)體的DR-Pix?技術(shù),提供雙轉(zhuǎn)換增益以在所有光照條件下提升性能。它以線性、HDR或LFM模式捕獲圖像,并提供模式間的幀到幀情境切換。 AR0231AT提供達4重曝光的HDR,以出色的噪聲性能捕獲超過120dB的動態(tài)范圍。AR0231AT能同步支持多個攝相機,以易于在汽車應(yīng)用中實現(xiàn)多個傳感器節(jié)點,和通過一個簡單的雙線串行接口實現(xiàn)用戶可編程性。它還有多個數(shù)據(jù)接口,包括MIPI(移動產(chǎn)業(yè)處理器接口)、并行和HiSPi(高速串行像素接口)。其它關(guān)鍵特性還包括可選自動化或用戶控制的黑電平控制,支持擴頻時鐘輸入和提供多色濾波陣列選擇。封裝和現(xiàn)狀:AR0231AT采用11 mm x 10 mm iBGA-121封裝,現(xiàn)提供工程樣品。工作溫度范圍為-40℃至105℃(環(huán)境溫度),將完全通過AEC-Q100認證。
標簽: 圖像傳感器
上傳時間: 2022-06-27
上傳用戶:XuVshu
VIP專區(qū)-嵌入式/單片機編程源碼精選合集系列(120)資源包含以下內(nèi)容:1. ARM的一個GPIO口的應(yīng)用 它使能一個口 驅(qū)動燈亮.2. bit led2=P2^5 // led2對應(yīng)接在P2.5腳 sbit led3=P2^6 // led3對應(yīng)接在P2.6腳 sbit led4=P2^7 // led4對應(yīng)接在P2.7腳.3. EA = 1 //開總中斷 ET0 = 1 //允許定時器0中斷 TMOD = 1 //定時器工作方式選擇 TL0 = 0x06 TH0 = 0xf8 //定時器賦予初值 .4. 嵌入式實驗代碼非常適合全面學(xué)習(xí)ARMS3C2440,有20多個練習(xí)代碼.5. 基于C8051F340單片機的串行flash芯片SST25VF016B的應(yīng)用,配合一般的串口調(diào)試程序即可完成對板上器件的讀寫操作..6. 飛思卡爾MC9S12DG128的PORTP7中斷試驗.7. 微細間距QFP器件手工焊接指南,希望對大家有用.8. 金鵬OCMJ8*10D的觸摸屏驅(qū)動程序.9. CODE for embedded C ,hand coding version.10. konqueror3 embedded版本, KDE環(huán)境下的當(dāng)家瀏覽器的嵌入式版本源碼包..11. 三菱PLC編寫用與點焊機上的PLC程序,另包括完整電氣原理圖..12. 24CXXX存儲數(shù)碼管 24C02讀寫(c) 24C02讀寫(匯編).13. 電機控制類 步進電機正反轉(zhuǎn)控制 步進電機調(diào)速控制.14. 個人設(shè)計的基于VHDL的數(shù)字電子日歷 在MAX+PLUSH軟件平臺上編譯、仿真.15. 超聲波倒車雷達的設(shè)計程序 利用SPCE061A單片機實現(xiàn)超聲波倒車雷達的測量計算方法。程序中采用軟件校正.16. PATTERNS FOR TIME-TRIGGERED EMBEDDED SYSTEMS by Michael J. Pont This code is copyright (c) 200.17. EP9315 開發(fā)板手冊 cirrus logic(思睿邏輯)公司在2005年推出的一款A(yù)RM920T.18. 譯本嵌入式數(shù)據(jù)庫sqlite的電子書,值得大家參考..19. 1302是用來輸出北京時間的,18b20用來檢測溫度,輸出在ds1302上顯示,有仿真文件.20. 可將其需要的文件轉(zhuǎn)換成數(shù)組,主要應(yīng)用在嵌入式或單片機編程中將要分析的文件生成一個數(shù)組參加程序編譯.21. 這是關(guān)于TDOA_AOA得一篇混合定位算法,有助于研究算發(fā)的人學(xué)習(xí)和使用..22. 51串口通訊程序.23. 一個開源的Modbus協(xié)議棧.24. 能夠詳細測量正負溫度的且小數(shù)點后四位的測溫系統(tǒng).25. 一本關(guān)于嵌入式系統(tǒng)實時概念的著作.26. C語言寫的Ibutton的讀寫文件,硬件資料 AT89s51+at24c02,編譯通過,可以使用.27. arm的原理圖設(shè)計.28. 本書深入淺出的介紹了可重用的理念與實現(xiàn).29. 德州儀器的關(guān)于cc2430評估模塊的原理圖及PCB資料.30. CC2430DB Reference Design TI的cc2430開發(fā)板設(shè)計資料.31. 嵌入式MCU可靠性接口及在車載定位系統(tǒng)中的應(yīng)用.32. au1200下的boot代碼.33. ARM嵌入式系統(tǒng)開發(fā):軟件設(shè)計與優(yōu)化.34. 友善之臂---QQ2440V3原理圖.35. zigbee協(xié)議棧.36. 國外自制頻率計,很全,有原理圖,有源代碼,有說明..37. ECOS2.0的源碼.38. trf7960開發(fā)板原理圖,是TI公司的.39. c8051f的多機通信程序 在c語言環(huán)境下.40. 祥細介紹液晶顯示器原理祥細介紹液晶顯示器原理.
標簽: 通信
上傳時間: 2013-04-15
上傳用戶:eeworm
這是msp430 time b的例程,請查收,接下來還有
上傳時間: 2015-12-04
上傳用戶:bcjtao
Mahafza B.R, Elsherbeni A.Z. - MATLAB Simulations for Radar Systems Design - 2004 對于雷達系統(tǒng)設(shè)計師來說這是一本難得的寶典
標簽: A.Z. Simulations Elsherbeni Mahafza
上傳時間: 2016-03-20
上傳用戶:pinksun9
針對目前使用的RS232接口數(shù)字化B超鍵盤存在PC主機啟動時不能設(shè)置BIOS,提出一種PS2鍵盤的設(shè)計方法。基于W78E052D單片機,采用8通道串行A/D轉(zhuǎn)換器設(shè)計了8個TGC電位器信息采集電路,電位器位置信息以鍵盤掃描碼序列形式發(fā)送,正交編碼器信號通過XC9536XL轉(zhuǎn)換為單片機可接收的中斷信號,軟件接收到中斷信息后等效處理成按鍵。結(jié)果表明,在滿足開機可設(shè)置BIOS同時,又可實現(xiàn)超聲特有功能,不需要專門設(shè)計驅(qū)動程序,接口簡單,成本低。 Abstract: Aiming at the problem of the digital ultrasonic diagnostic imaging system keyboard with RS232 interface currently used couldn?蒺t set the BIOS when the PC boot, this paper proposed a design method of PS2 keyboards. Based on W78E052D microcontroller,designed eight TGC potentiometers information acquisition circuit with 8-channel serial A/D converter, potentiometer position information sent out with keyboard scan code sequentially.The control circuit based on XC9536 CPLD is used for converting the mechanical actions of the encoders into the signals that can be identified by the MCU, software received interrupt information and equivalently treatmented as key. The results show that the BIOS can be set to meet the boot, ultrasound specific functionality can be achieved at the same time, it does not require specially designed driver,the interface is simple and low cost.
上傳時間: 2013-10-10
上傳用戶:asdfasdfd
蟲蟲下載站版權(quán)所有 京ICP備2021023401號-1