Add phase shift to sum of sines

조회 수: 4 (최근 30일)
salvor
salvor 2017년 3월 14일
편집: Ed Marquez 2017년 3월 24일
Hi everybody,
I have a sum of three sine waves with different frequencies. How can I get the same sines sum shifted of 90degrees?
Thank you

채택된 답변

Ed Marquez
Ed Marquez 2017년 3월 24일
편집: Ed Marquez 2017년 3월 24일
Hi,
You could implementing something along the lines of:
x = sin(linspace(0, 10*pi, 10000));
x_shift = zeros(1, numel(x));
x_shift(1:9000) = x(1001:10000);
plot(x)
hold on
plot(x_shift)
You can check more solutions from the community in this post: https://www.mathworks.com/matlabcentral/answers/45939-how-to-do-a-phase-shift-of-a-signal

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Linear Algebra에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by