Borrar filtros
Borrar filtros

how can i create an amplitude sweep?

6 visualizaciones (últimos 30 días)
Ali Albaidhani
Ali Albaidhani el 9 de En. de 2022
Comentada: Star Strider el 9 de En. de 2022
Hello,
im trying to create a signal that has a constant frequency but a changing amplitude.
Please help if you know.
Regards
Ali

Respuesta aceptada

Star Strider
Star Strider el 9 de En. de 2022
Try these —
t = linspace(0, 10, 500);
s = sin(2*pi*t*10);
figure
subplot(3,1,1)
plot(t, s)
grid
ylim([-10 10])
title('Original Signal')
subplot(3,1,2)
plot(t, s .* t)
grid
ylim([-10 10])
title('Original Signal With Linearly-Increasing Amplitude')
subplot(3,1,3)
plot(t, s .* 5.*cos(2*pi*0.5*t))
grid
ylim([-10 10])
title('Original Signal With Periodically-Changing Amplitude')
.
  2 comentarios
Ali Albaidhani
Ali Albaidhani el 9 de En. de 2022
thank you so much
Star Strider
Star Strider el 9 de En. de 2022
As always, my pleasure!
.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Matched Filter and Ambiguity Function en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by