Looking for a solution to simulate a frequency beating through two wavelength components
Show older comments
I am working on microwave photonics project. I am looking for a solution to simulate a frequency beating through two wavelength components. Is anyone here have the experience in this work? Can anyone please advice the method and the procedure to perform the simulation using Matlab. Thank you.
Answers (1)
Star Strider
on 20 Nov 2017
The combination of two frequencies to simulate a ‘beat’ is not specific to photonics. In continuous-time terms, it is simply a combination of two frequencies in a nonlinear process. Mathematically, it is much more straightforward, and simply requires the element-wise multiplication of two different frequencies with the same sampling time. The mathematical foundation: Product-to-sum and sum-to-product identities (link).
Example —
t = linspace(0, 1, 1000);
f1 = sin(2*pi* 5*t); % 5 Hz Signal
f2 = sin(2*pi*15*t); % 15 Hz Signal
beat = f1 .* f2; % Beat Signal
figure(1)
plot(t, f1, t, f2)
hold on
plot(t, beat, '-g', 'LineWidth',2)
hold off
grid
Categories
Find more on Quantum Mechanics in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!