This example calculates the bit error rate (BER) of a Bluetooth® or 802.11b communication link interfered with by another 802.11b or Bluetooth transmitter. It uses the new MATLAB® object oriented programming features released in R2008a.
The main function btint and accompanying classes have been translated from the C++ NIST Bluetooth and IEEE 802.11b Coexistence Simulator (http://tinyurl.com/2fq9qp). The original C++ code has been retained as comments in the MATLAB code to help with its understanding for those familiar with C++.
See Description.html for information on how to run it and ComparingCAndMATLAB.html to compare the two implementations.
Other useful resources for learning object orient programming in MATLAB include:
* Defining Classes Video Tutorial - 11 min (http://tinyurl.com/29cdle)
* Comparison of C++, Java, Python, Ruby and MATLAB Using Object Oriented Example (http://tinyurl.com/2yyk96)
* MATLAB Classes and Object Oriented Programming Documentation (http://tinyurl.com/2z8mba)
For more information on MATLAB OOP, see product page: http://www.mathworks.com/discovery/object-oriented-programming.html