How to plot a shifted signal?

I'd like to shift any signal, be it periodic or non-periodic without using in-built functions like circshift(). How would I do this? I'm seeking to understand shifting conceptually and would love to have code examples.

답변 (1개)

Matt J
Matt J 2023년 11월 7일
편집: Matt J 2023년 11월 7일

0 개 추천

One way:
t=linspace(0,2*pi);
y=sin(t);
plot(t,y,t-pi/2,y,'x'); legend Original Shifted

카테고리

도움말 센터File Exchange에서 Interactive Control and Callbacks에 대해 자세히 알아보기

질문:

2023년 11월 7일

편집:

2023년 11월 7일

Community Treasure Hunt

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

Start Hunting!

Translated by