一个用于求圆周率pi的matlab算法。题目背景:取一长面积为1平方米的正方形白纸,在白纸的内部画一个直径为1米的圆,如下图所示。此圆恰好与正方形的四条边分别切于一点,它的面积是 pi*(1/2)^2 =pi/4 ,然后,你可以抓一大把芝麻,一粒一粒地随便地扔到白纸上。在你扔麦子的过程中可以请一位朋友帮助记录:一共扔了几次?有几次是扔在圆里面? 实验结束后,你只须用“芝麻落在圆里的次数”除以“一共扔的次数”得到的结果就是圆的面积。则pi就是“圆的面积*4”了 当然,你扔的次数越多,结果就越精确!
上传时间: 2016-01-18
上传用户:asdfasdfd
实验板的AVR程序,矩阵4*4键盘键值显示,驱动蜂鸣器发出按键声。 接线定义:SW1~8打开,SW2-1,2,3,4,打开,SW2-6为LED的电源,SW3-8为系统复位脚。 PA2(SW5-7)为蜂鸣器输出端,PB(SW4-1~8)为键盘接入 记事:本程序旨在对矩阵键盘扫描的理解与演示,程序适合初学者使用。 使用器件:ATMEGA8535,可更换。 默认片内1MHz晶振 功能:初始LED显示 - ,按下那个按键显示按键的键值。使用的是4×4矩阵键盘。
上传时间: 2016-01-23
上传用户:脚趾头
KEPware Automation DLL installation instructions: To use the KEPware Automation DLL in your Visual Basic project: 1) In the VB IDE, Select "Project/References". 2) If you have been using another vender s automation dll, uncheck it. For example, uncheck "OPC Automation 2.0" for the OPC Foundation s automation dll. 3) Check "KEPware OPC Automation 2.0". 4) Recompile your VB project. If you have been using the OPC Fondation s automation dll, you should not need to make any changes to the VB source code.
标签: Automation KEPware installation instructions
上传时间: 2013-12-28
上传用户:电子世界
The XML Toolbox converts MATLAB data types (such as double, char, struct, complex, sparse, logical) of any level of nesting to XML format and vice versa. For example, >> project.name = MyProject >> project.id = 1234 >> project.param.a = 3.1415 >> project.param.b = 42 becomes with str=xml_format(project, off ) "<project> <name>MyProject</name> <id>1234</id> <param> <a>3.1415</a> <b>42</b> </param> </project>" On the other hand, if an XML string XStr is given, this can be converted easily to a MATLAB data type or structure V with the command V=xml_parse(XStr).
标签: converts Toolbox complex logical
上传时间: 2016-02-12
上传用户:a673761058
This project aim was to build wireless software modem for data communication between two computers using an acoustic interface in the voice frequency range (20Hz– 20,000Hz). The transmitting antenna is a speaker (frequency response of: 90Hz – 20,000Hz) and the receiving antenna is a microphone (frequency response of: 100Hz – 16,000Hz). The test files used as information files were text files. This goal was attained both in an incoherent scheme and in a coherent scheme. Build under Matlab code, our modem uses OFDM (orthogonal frequency division multiplexing) modulation, synchronization by LMS sequence, channel estimation (no equalizer) via pilot tones. The symbols are either PSK or ASK for a constellation size of 2 or 4. To optimize the probability of error, these symbols were mapped using Gray mapping. Report
标签: communication computers software wireless
上传时间: 2014-05-29
上传用户:wangdean1101
Threads are essential to Java programming, but learning to use them effectively is a nontrivial task. This new edition of the classic Java Threads shows you how to take full advantage of Java s threading facilities and brings you up-to-date with the watershed changes in Java 2 Standard Edition version 5.0 (J2SE 5.0). It provides a thorough, step-by-step approach to threads programming.
标签: effectively programming nontrivial essential
上传时间: 2016-03-20
上传用户:hn891122
约瑟夫环问题 以7个人为例,用链表实现,每个人都有自己的密码,当他出列时,以他的密码作为下一个的个数,例这七个人的密码分别是3,1,7,2,4,8,4。第一个执行的个数是20
标签:
上传时间: 2016-04-04
上传用户:anng
程序调试思想与实践 本书将调试作为一门专业的学科进行研究和分析,提供大量的代码实例和问题描述,对调试的各个方面进行细致而深入的阐述和讨论。本书以bug 为中心,围绕调试这一主题 进行组织,第2章到第5 章包括bug的诊断与分类以及它们的症状,第6章到第10章讨论那些处理bug 的策略,包括可以使用的工具以及在不同情况下如何最佳地使用它们。第11章到第16 章包括对专业调试的解释以及如何成为一个出色的调试员。 本书主要面向的读者群是软件项目的开发人员、调试人员、测试人员以及管理人员。
上传时间: 2016-04-06
上传用户:a6697238
很好串口通讯软件支持D3,4,5,可实现串口多线程
上传时间: 2014-01-13
上传用户:it男一枚
任何两位任意长度实数相乘,显示结果为非浮点,精确到各位。 不会因为4舍5入。或进位而产生误差。
标签: 任意长度
上传时间: 2016-05-12
上传用户:saharawalker