Comparison of C++ and MATLAB Using OOP Example

Wireless Communications Application Example Used to Compare C++ and MATLAB® Code

You are now following this Submission

Editor's Note: Popular File 2009

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. 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 (https://www.mathworks.com/videos/developing-classes-overview-101452.html )
* Comparison of C++ and MATLAB Using Object Oriented Application Example (http://tinyurl.com/2zkhgu )
* MATLAB Classes and Object Oriented Programming Documentation (https://www.mathworks.com/help/matlab/object-oriented-design-with-matlab.html )
For more information on MATLAB OOP, see product page: https://www.mathworks.com/products/matlab/object-oriented-programming.html

Cite As

Stuart McGarrity (2026). Comparison of C++ and MATLAB Using OOP Example (https://se.mathworks.com/matlabcentral/fileexchange/18971-comparison-of-c-and-matlab-using-oop-example), MATLAB Central File Exchange. Retrieved .

Categories

Find more on Software Development in Help Center and MATLAB Answers

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.9.0.3

Fix broken link.

1.9.0.2

Fixed broken links

1.9.0.1

Updated license

1.9.0.0

Added link.

1.7.0.0

Copyright work.

1.5.0.0

Trademark work.

1.3.0.0

Trademark work.

1.1.0.0

Added trademarks.

1.0.0.0

Fix summary and Video URL