Energy Detection Simulation : Finding Threhsold

Code to find threshold for energy detection in Cognitive Radio using Simulations
2.9K Downloads
Updated 2 Dec 2013

View License

Here we calculate the threshold in energy detection by simulations. This is a general method and applicable to all scenarios for energy detection. We assume that all the signals are complex Gaussian.
% Algorithm:
1. Assume onlt noise is received, i.e., primary user is absent.
2. If the only noise energy lies above the threhsold, it corresponds to
false alarm.
3. Run this scenario for some number of iteration.
4. Probability of False Alarm = energy above threshold/No. of Iteration.

To plot ROC curve, refer other MATLAB code posted by the same author.

Cite As

Sanket Kalamkar (2024). Energy Detection Simulation : Finding Threhsold (https://www.mathworks.com/matlabcentral/fileexchange/44570-energy-detection-simulation-finding-threhsold), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2013a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.0.0.0