clc
t=2;
f1 = 130;
f2 = 120;
y = 2*cos.*(2*pi*((f1+f2)./2)*t)*cos.*(2*pi*((f1-f2)./2)*t);

 Accepted Answer

Is this what you mean?
y = 2*cos(2*pi*((f1+f2)/2)*t)*cos(2*pi*((f1-f2)/2)*t);

More Answers (0)

Categories

Products

Tags

Community Treasure Hunt

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

Start Hunting!