Stochastic Resonance in the Duffing Oscillator with MATLAB
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 (2024). 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 .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.