Error using 'pi' too many input errors with my equation
Mostrar comentarios más antiguos
%Defining given varibles
t = 0 :.1 :3;
f1 = 130;
f2 = 120;
y1 = cosd(2*pi*f1*t);
y2 = cosd(2*pi*f2*t);
%% Section 2: Processing
%equation given
y = 2 * cos(2*pi(f1+f2/2)*t) * cos(2*pi(f1-f2/2)*t);
%% Section 3: Result Output
plot(y)
title('Alternating Loud and Quiet Sounds')
xlabel('Time(s)')
ylabel('Amplitutde')
1 comentario
Serena Simpson
el 18 de Sept. de 2020
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Audio Processing Algorithm Design en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!