Neural Network Frequency and Phase Detector

Live Script illustrating detection of frequency and phase of a noisy signal with a neural network.
12 Downloads
Updated 9 Jun 2025

View License

This educational Live Script illustrates the construction, training, and testing of a neural network to estimate the frequency and phase of a harmonic signal embedded in Gaussian noise. It shows how to use feedforwardnet and dlnetwork (from the Deep Learning Toolbox) in a nonlinear regression task with multiple continuous outputs and how to save the results for later use. The methods can be extended to similar regression problems.
This script may interest students and instructors in physics and related fields. 'Try this' suggestions, coding 'Challenges,' hyperlinks, and references are included for further exploration. Additional related Live Scripts by the author are available here.

Cite As

Duncan Carlsmith (2025). Neural Network Frequency and Phase Detector (https://nl.mathworks.com/matlabcentral/fileexchange/181239-neural-network-frequency-and-phase-detector), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2025a
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!

NeuralNetworkFrequencyAndPhaseDetector folder

Version Published Release Notes
1.0.0