You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
Numerically solve the driven, damped, duffing oscillator with noise.
It computes the averaged signal and noise amplitude spectra for varying noise strength. Plots the signal-to-noise ratio vs. noise strength and time-series, phase space, well occupation distributions, and amplitude spectra for four chosen noise strengths.
Instead of modeling the random noise so that the differential equation is stochastic, the noise is treated analytically as a finite Fourier series, where the frequency and phase are random, and the noise type depends on the frequency dependent amplitude function.
This is not the most efficient way numerically, but allows one to calculate analytic results.
Can be easily modified for any second-order differential equation.
Cite As
Robert Ralich (2026). Stochastic Resonance in the Duffing Oscillator with MATLAB (https://www.mathworks.com/matlabcentral/fileexchange/35479-stochastic-resonance-in-the-duffing-oscillator-with-matlab), MATLAB Central File Exchange. Retrieved .
General Information
- Version 1.1.0.0 (3.1 KB)
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
