필터 지우기
필터 지우기

how can i create an amplitude sweep?

조회 수: 6 (최근 30일)
Ali Albaidhani
Ali Albaidhani 2022년 1월 9일
댓글: Star Strider 2022년 1월 9일
Hello,
im trying to create a signal that has a constant frequency but a changing amplitude.
Please help if you know.
Regards
Ali

채택된 답변

Star Strider
Star Strider 2022년 1월 9일
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
Ali Albaidhani
Ali Albaidhani 2022년 1월 9일
thank you so much
Star Strider
Star Strider 2022년 1월 9일
As always, my pleasure!
.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Matched Filter and Ambiguity Function에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by