how do i generate a double tone sinusoidal signal

2 views (last 30 days)
1. Generate a triple tone sinusoidal signal whose frequencies are 0.1, 2, 7 kHz and a sampling frequency of 20 kHz and a duration of 0.1 seconds. 2. Apply a LPF whose coefficients are given by
[1.0000 0.7303 0.5334 0.3895 0.2845 0.2077 0.1517 0.1108 0.0809 0.0591 0.0432 0.0315 0.023 0.0168 0.0123 0.009 0.0065 0.0048 0.0035 0.0026 0.0019 0.0014 0.001 0.0007] to the signal in step “1”.
Find and sketch the output of the filter y(t).

Answers (1)

Walter Roberson
Walter Roberson on 21 Dec 2018
Fs = randi([50 44100]);
t = 0:1/Fs:0.1;
F = randi([1 floor(Fs/2)], 1, 2);
y = sin(t*pi*F(1)) + sin(t*pi*F(2));
plot(t, y);

Categories

Find more on Signal Processing Toolbox in Help Center and File Exchange

Products


Release

R2016b

Community Treasure Hunt

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

Start Hunting!