Changing frequency of given data set
조회 수: 35 (최근 30일)
이전 댓글 표시
I have data set (voltage vs time) of a signal with frequency 450Hz and number of sample is 10000. How can I change frequency of a that data set using Matlab and also add phase shift with that signal?
댓글 수: 0
답변 (1개)
Chaitanya Mallela
2020년 7월 16일
Consider voltage vector x
Let the frequency shift be delta_f and phase shift be delta_p
N = 10000 % number of samples
To change the frequency of the data set, multiply complex exponential with x
y = exp(i*2*pi*[1:N]*delta_f*1/N).*x
Observe the fft plot with new frequency
plot(abs(fft(y)))
New frequency f_new = 450 + delta_f;
To add phase use circshift function on abs(y) shifted with delta_p
참고 항목
카테고리
Help Center 및 File Exchange에서 Propagation and Channel Models에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!