虫虫首页| 资源下载| 资源专辑| 精品软件
登录| 注册

automation-and-<b>Robotics</b>

  • 离散实验 一个包的传递 用warshall

     实验源代码 //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("可传递闭包关系矩阵是:\n"); for(i=0;i<k;i++) { for( j=0;j<n;j++) { printf("%d", temp[i][ j]); } printf("\n"); } } void main() { printf("利用 Warshall 算法求二元关系的可传递闭包\n"); void warshall(int,int); int k , n; printf("请输入矩阵的行数 i: "); scanf("%d",&k); 四川大学实验报告 printf("请输入矩阵的列数 j: "); scanf("%d",&n); warshall(k,n); } 

    标签: warshall 离散 实验

    上传时间: 2016-06-27

    上传用户:梁雪文以

  • MCF5223XFS

    Connecting 32-bit controlled applications in the industrial, commercial and consumer markets is fast becoming a necessity rather than an option. Many new applications, such as remote data collection, home automation and networked appliances, require secure, high-performance connectivity at an economical price. Freescale Semiconductor gives design engineers the flexibility to choose the right 32-bit microcontroller from a broad portfolio of ColdFire® embedded controllers.

    标签: 5223 MCF XFS

    上传时间: 2017-02-18

    上传用户:traff07

  • 道理特分解法

    #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<<"正在析构中~~~~"<<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

  • 智能温室大棚控制系统设计

    近年来反季节种植已成火热趋势,温室大棚的普及十分迅速,而温室大棚对自动化、智能化的要求也越来越迫切,本系统将温室大棚的温湿度、二氧化碳浓度各个方面的检测,通风、浇灌、温度、喷洒农药等各个方面的控制进行综合系统研究,实现温室大棚对自动化、智能化的要求。这一系统是基于单片机控制的智能检测,控制系统包含单片机主控模块、感应检测模块、传感模块,显示、控制模块等[1]。从而提高温室大棚的种植效率,减少劳动力,提高利润等。In recent years,counter-season planting has become a hot trend featuring the rapid popularization of greenhouse and urgent requirement for the automation and intellectualization of greenhouse.This paper offers a comprehensive and systematic study of the monitoring of temperature,humidity and carbon dioxide concentration in the greenhouse and the control of ventilation,irrigation,temperature and pesticide spraying in order to achieve automation and intellectualization in greenhouse.This system is based on the intelligent detection controlled by single chip computer with the control system including the main control module,induction detection module,sensing module,display and control module of single chip computer,which is effective in improving planting efficiency of greenhouse,reducing labor force and increasing profits.

    标签: 智能温室大棚 控制系统

    上传时间: 2022-03-27

    上传用户:

  • 基于MSP430F5529单片机综合实验装置的研制

    针对目前MSP430单片机实验装置较少、实验内容少,而且无MSP430高端产品的实验装置,研制了基于MSP430F5529单片机的综合实验装置,主要包括MSP430 Launch Pad和母板两部分。较传统的单片机实验装置增加了模拟电路的设置,设计的实验能够利用单片机的所有外设,可进行模块基础实验和综合实验两大类实验,非常适合自动化和电气信息类大学生学习使用。Concerning with the lack of experimental equipment and content based on MSP430,and especially,the experimental equipment of MSP430 senior products,an experimental equipment based on MSP430F5529 microcontroller is developed. It mainly consists of two parts: MSP430 Launch Pad and main board. Compared with traditional microcontroller experiment equipment,a few analog circuits were added. The experiment we set up takes advantage of all microcontroller peripherals. Students can do two kinds of experiments: module experiment and complex experiment.Therefore it fits university students in automation and electrical major very well.

    标签: msp430f5529 单片机

    上传时间: 2022-04-13

    上传用户:

  • 安森美车规级1080P图像传感器AR0231手册

    AR0231AT7C00XUEA0-DRBR(RGB滤光)安森美半导体推出采用突破性减少LED闪烁 (LFM)技术的新的230万像素CMOS图像传感器样品AR0231AT,为汽车先进驾驶辅助系统(ADAS)应用确立了一个新基准。新器件能捕获1080p高动态范围(HDR)视频,还具备支持汽车安全完整性等级B(ASIL B)的特性。LFM技术(专利申请中)消除交通信号灯和汽车LED照明的高频LED闪烁,令交通信号阅读算法能于所有光照条件下工作。AR0231AT具有1/2.7英寸(6.82 mm)光学格式和1928(水平) x 1208(垂直)有源像素阵列。它采用最新的3.0微米背照式(BSI)像素及安森美半导体的DR-Pix™技术,提供双转换增益以在所有光照条件下提升性能。它以线性、HDR或LFM模式捕获图像,并提供模式间的帧到帧情境切换。 AR0231AT提供达4重曝光的HDR,以出色的噪声性能捕获超过120dB的动态范围。AR0231AT能同步支持多个摄相机,以易于在汽车应用中实现多个传感器节点,和通过一个简单的双线串行接口实现用户可编程性。它还有多个数据接口,包括MIPI(移动产业处理器接口)、并行和HiSPi(高速串行像素接口)。其它关键特性还包括可选自动化或用户控制的黑电平控制,支持扩频时钟输入和提供多色滤波阵列选择。封装和现状:AR0231AT采用11 mm x 10 mm iBGA-121封装,现提供工程样品。工作温度范围为-40℃至105℃(环境温度),将完全通过AEC-Q100认证。

    标签: 图像传感器

    上传时间: 2022-06-27

    上传用户:XuVshu

  • A Simple isochronous transfer. Reads 8051 ports A,B and C, and continuously sends a five byte packet

    A Simple isochronous transfer. Reads 8051 ports A,B and C, and continuously sends a five byte packet over EP8IN:

    标签: continuously isochronous and transfer

    上传时间: 2015-02-01

    上传用户:ywqaxiwang

  • If we have two individually sorted vectors "a" and "b" but they are not sorted with respect to each

    If we have two individually sorted vectors "a" and "b" but they are not sorted with respect to each other and we want to merge them into vector "c" such that "c" is also a sorted vector. Then c=mergesorted(a,b) can be used.

    标签: sorted individually respect vectors

    上传时间: 2015-09-23

    上传用户:comua

  • Distributed Median,Alice has an array A, and Bob has an array B. All elements in A and B are distinc

    Distributed Median,Alice has an array A, and Bob has an array B. All elements in A and B are distinct. Alice and Bob are interested in finding the median element of their combined arrays.

    标签: array B. Distributed has

    上传时间: 2013-12-25

    上传用户:洛木卓

  • design LP,HP,B S digital Butterworth and Chebyshev filter. All array has been specified internally

    design LP,HP,B S digital Butterworth and Chebyshev filter. All array has been specified internally,so user only need to input f1,f2,f3,f4,fs(in hz), alpha1,alpha2(in db) and iband (to specify the type of to design). This program output hk(z)=bk(z)/ak(z),k=1,2,..., ksection and the freq.

    标签: Butterworth internally Chebyshev specified

    上传时间: 2015-11-08

    上传用户:253189838