This Is DSP Lab 3
How to Produce Beat Note in Matlab
Learning Objectives:
How to plot in matlab
How to make multiplots in a single window
How subplot works
Multiplication of signals
Beat note
Code:
t=0:0.0001:1;
x1=cos(2*pi*90*t);
x2=cos(2*pi*9*t);
y=x1*x2;
subplot(2,1,1)
title('sinusoids of Different frequency');
plot(t,x1, 'linewidth', 2);
hold on
plot(t,x2,'r', 'linewidth', 2)
subplot(2,1,2);
title('Multiplied signals result');
plot(t,y,'r', 'linewidth', 2)
hold on
plot(t,x2, 'b','linewidth', 2);
hold on
x3=cos(2*pi*9*t-pi);
plot(t,x3,'b', 'linewidth', 2)
sound(y)
Download
0 formats
No download links available.
DSP LAB 3 || How to Plot || Subplot || Beat Note | NatokHD