MATLAB_For_C

所属分类:matlab编程
开发工具:MultiPlatform
文件大小:7437KB
下载次数:57
上传日期:2007-12-22 23:52:39
上 传 者旋转木马
说明:  完整的C与matlab混合编程的例子,包含很多实例,还有讲解用的ppt,对于想要了解c与matlab混合编程的人很有帮助。
(Complete mixed C and matlab programming examples, including many examples, as well as on the use of ppt, to want to know c and mixed programming matlab people very helpful.)

文件列表:
MATLAB For C\Demo 8 - Speed Comparison\comparetimes.m (376, 2005-04-28)
MATLAB For C\Demo 8 - Speed Comparison\matrixoperations.m (423, 2005-04-07)
MATLAB For C\Demo 8 - Speed Comparison\setup.m (55, 2005-05-04)
MATLAB For C\Demo 8 - Speed Comparison\times.mat (984, 2005-04-28)
MATLAB For C\Demo 8 - Speed Comparison\whet\source\Before bret main.cpp (4792, 2005-04-12)
MATLAB For C\Demo 8 - Speed Comparison\whet\source\main.cpp (3987, 2005-04-22)
MATLAB For C\Demo 8 - Speed Comparison\whet\win32\Debug\BuildLog.htm (3073, 2005-04-19)
MATLAB For C\Demo 8 - Speed Comparison\whet\win32\Debug\main.obj (16223, 2005-04-19)
MATLAB For C\Demo 8 - Speed Comparison\whet\win32\Debug\vc70.idb (44032, 2005-04-19)
MATLAB For C\Demo 8 - Speed Comparison\whet\win32\Debug\vc70.pdb (61440, 2005-04-19)
MATLAB For C\Demo 8 - Speed Comparison\whet\win32\Debug\whet.exe (167936, 2005-04-19)
MATLAB For C\Demo 8 - Speed Comparison\whet\win32\Debug\whet.ilk (486512, 2005-04-19)
MATLAB For C\Demo 8 - Speed Comparison\whet\win32\Debug\whet.pch (393216, 2005-04-19)
MATLAB For C\Demo 8 - Speed Comparison\whet\win32\Debug\whet.pdb (568320, 2005-04-19)
MATLAB For C\Demo 8 - Speed Comparison\whet\win32\Release\BuildLog.htm (3257, 2005-04-22)
MATLAB For C\Demo 8 - Speed Comparison\whet\win32\Release\main.obj (6983, 2005-04-22)
MATLAB For C\Demo 8 - Speed Comparison\whet\win32\Release\vc70.idb (44032, 2005-04-22)
MATLAB For C\Demo 8 - Speed Comparison\whet\win32\Release\whet.exe (45056, 2005-04-22)
MATLAB For C\Demo 8 - Speed Comparison\whet\win32\Release\whet.pch (393216, 2005-04-20)
MATLAB For C\Demo 8 - Speed Comparison\whet\win32\whet.ncb (125952, 2005-04-22)
MATLAB For C\Demo 8 - Speed Comparison\whet\win32\whet.sln (897, 2005-04-04)
MATLAB For C\Demo 8 - Speed Comparison\whet\win32\whet.suo (12288, 2005-04-22)
MATLAB For C\Demo 8 - Speed Comparison\whet\win32\whet.vcproj (5079, 2005-04-17)
MATLAB For C\Demo 8 - Speed Comparison\whetstone.m (2342, 2005-04-28)
MATLAB For C\Alg Dev with MATLAB for CC++ Programmers Seminar.ppt (6117376, 2007-07-13)
MATLAB For C\setup.m (837, 2005-05-04)
MATLAB For C\C Code for demo 1 3 5 and 6\bin\tests.py (3408, 2002-04-30)
MATLAB For C\C Code for demo 1 3 5 and 6\bin\trials.py (3843, 2001-07-27)
MATLAB For C\C Code for demo 1 3 5 and 6\include\awgnchan.h (1324, 2001-09-10)
MATLAB For C\C Code for demo 1 3 5 and 6\include\basetype.h (3786, 2001-09-12)
MATLAB For C\C Code for demo 1 3 5 and 6\include\bluetooth.h (2143, 2001-09-10)
MATLAB For C\C Code for demo 1 3 5 and 6\include\configure.h (230, 2005-05-04)
MATLAB For C\C Code for demo 1 3 5 and 6\include\datatype.h (650, 2001-09-10)
MATLAB For C\C Code for demo 1 3 5 and 6\include\ieee802.11b.h (3561, 2001-09-10)
MATLAB For C\C Code for demo 1 3 5 and 6\include\programargs.h (1249, 2001-09-10)
MATLAB For C\C Code for demo 1 3 5 and 6\include\random.h (2193, 2001-09-10)
MATLAB For C\C Code for demo 1 3 5 and 6\include\stdcpp.h (108, 2001-09-14)
MATLAB For C\C Code for demo 1 3 5 and 6\include\templates.h (6732, 2002-01-08)
MATLAB For C\C Code for demo 1 3 5 and 6\include\util.h (764, 2001-09-10)
... ...

OVERVIEW OF SOFTWARE -------------------- The model of the network is simple. A transmitter takes input bits and outputs a complex-valued signal. The channel model combines the desired signal with that produced by an interference transmitter and adds (possibly) distortion to the combined signal. The channel outputs this noisy signal, which is then input to the desired receiver, which uses the same technology (Bluetooth, IEEE 802.11b, etc.) as the desired transmitter. The receiver outputs a string of bits, which is compared to the input bits, accounting for the delay characteristics of the transmitter and receiver. The software is structured as follows. The three network component abstract base classes are: Transmitter, Receiver, and Channel. Each one of these has one public member function that implements its primary function. 1. Transmitter::transmit() takes an array of bits as an input and outputs a signal, which is an array of complex-valued samples from the modulated signal. 2. Channel::process() takes two signals as input, one desired and one interference, adds them together, and may add other distortion. 3. Receiver::receive() takes a signal as input and outputs an array of bits. The following types are used for Bits (an array of bits) and Signal (an array of complex-valued samples): typedef valarray Bits; typedef complex Sample; typedef valarray Signal; The valarray<> class is part of the Standard C++ Library. The particular technologies implemented are as follows. 1. Bluetooth: BluetoothTransmitter and BluetoothReceiver classes. 2. IEEE802.11b: IEEE802_11bTransmitter and IEEE802_11bReceiver classes. These classes implement both the 1 Mb/s and 11 Mb/s (CCK) bitrates. BUILD INSTRUCTIONS ------------------ 1. Unix: 'cd' to the 'unix' directory and type 'make'. This will build the executable file 'btint' and copy it to the 'bin' directory. NOTES: -- We used g++ version 2.95.3 on Linux. Other compilers may have trouble with the valarray<> Standard C++ Library class. In particular, we compiled the program under Solaris using g++ 2.95.2, but the valarray class did not work properly. We could not get the valarray class to compile under Solaris using Sun's CC compiler. 2. Windows: launch Developer's Studio. Open file 'btint.dsw' in the 'win32' directory. Click 'Build' under the 'Build' menu. This will build the executable file 'btint.exe'and copy it to the 'bin' directory. RUNNING THE SCRIPTS ------------------- In the 'bin' directory, we have two Python scripts. 'trials.py' runs three cases: I. Bluetooth transmitter/receiver with IEEE 802.11b (1 Mb/s) interference II. IEEE 802.11b (1 Mb/s) transmitter/receiver with Bluetooth interference III. IEEE 802.11b (11 Mb/s) transmitter/receiver with Bluetooth interference over a range of carrier-to-interference (CIR) ratios and frequency differences. 'tests.py' runs a subset of the above and can be used to check that the program is running properly. You need to have Python installed on your system. Many Unix (incl. Linux) systems have it installed already. If you do not, you may download and install it from either www.python.org or www.activestate.com. CHECKING THE RESULTS -------------------- In the 'results' directory, we have files with output from 'tests.py' and 'trials.py' to compare to your results. See the README file in the 'results' directory for more information.

近期下载者

相关文件


收藏者